Anton Kaliaev
c8ddf156a7
Merge pull request #104 from tendermint/revert-94-feature/timer-refactor
Revert "Refactor throttle timer"
7 years ago
Anton Kaliaev
e17e8e425f
Revert "Refactor throttle timer"
7 years ago
Anton Kaliaev
be2b0fa31e
Merge pull request #103 from tendermint/revert-95-feature/repeat-timer
Revert "Refactor repeat timer"
7 years ago
Anton Kaliaev
70e30f74e6
Revert "Refactor repeat timer"
7 years ago
Anton Kaliaev
4ddf212286
Merge pull request #100 from tendermint/internal-randSource
common: no more relying on math/rand.DefaultSource
7 years ago
Emmanuel Odeke
8638961f02
common: Rand* warnings about cryptographic unsafety
Lesson articulated by @jaekwon on why we need 80 bits
of entropy at least before we can think of cryptographic
safety. math/rand's seed is a max of 64 bits so can never
be cryptographically secure.
Also added some benchmarks for RandBytes
7 years ago
Emmanuel Odeke
cdc7988823
common: use genius simplification of tests from @ebuchman
Massive test simplication for more reliable tests from @ebuchman
7 years ago
Ethan Buchman
b5f465b4ec
common: use names prng and mrand
7 years ago
Emmanuel Odeke
29471d75cb
common: no more relying on math/rand.DefaultSource
Fixes https://github.com/tendermint/tmlibs/issues/99
Updates https://github.com/tendermint/tendermint/issues/973
Removed usages of math/rand.DefaultSource in favour of our
own source that's seeded with a completely random source
and is safe for use in concurrent in multiple goroutines.
Also extend some functionality that the stdlib exposes such as
* RandPerm
* RandIntn
* RandInt31
* RandInt63
Also added an integration test whose purpose is to be run as
a consistency check to ensure that our results never repeat
hence that our internal PRNG is uniquely seeded each time.
This integration test can be triggered by setting environment variable:
`TENDERMINT_INTEGRATION_TESTS=true`
for example
```shell
TENDERMINT_INTEGRATION_TESTS=true go test
```
7 years ago
Anton Kaliaev
a80b66268f
Merge pull request #97 from tendermint/rm-root-flag
remove deprecated --root flag
7 years ago
Anton Kaliaev
541780c6df
uncomment tests
7 years ago
Zach Ramsay
f39b575503
remove deprecated --root flag
7 years ago
Ethan Buchman
d836ee056d
Merge pull request #96 from tendermint/tm-945
add String method to Query interface
7 years ago
Anton Kaliaev
e4ef2835f0
return error if client already subscribed
7 years ago
Anton Kaliaev
cb4ba522ef
add String method to Query interface
Required for https://github.com/tendermint/tendermint/issues/945
7 years ago
Anton Kaliaev
b49bce2bc3
Merge pull request #95 from tendermint/feature/repeat-timer
Refactor repeat timer
7 years ago
Anton Kaliaev
ff2fd63bf7
rename trySend to send
7 years ago
Ethan Frey
ec4adf21e0
Cleanup from PR comments
7 years ago
Ethan Frey
cc7a87e27c
Use Ticker in Repeat again to avoid drift
7 years ago
Ethan Frey
8797197cdf
No more blocking on multiple Stop()
7 years ago
Ethan Frey
887d766c86
Refactored RepeatTimer, tests hang
7 years ago
Anton Kaliaev
daa6c39dcb
Merge pull request #94 from tendermint/feature/timer-refactor
Refactor throttle timer
7 years ago
Anton Kaliaev
3779310c72
return back output internal channel (way go does with Timer)
7 years ago
Ethan Frey
8b518fadb2
Don't close throttle channel, explain why
7 years ago
Ethan Frey
e430d3f844
One more attempt with a read-only channel
7 years ago
Ethan Frey
1ac4c5dd6d
Made throttle output non-blocking
7 years ago
Ethan Frey
0a8721113a
First pass of PR updates
7 years ago
Ethan Frey
4ec7883891
Cleanup
7 years ago
Ethan Frey
dcb4395604
Refactor throttle timer
7 years ago
Ethan Frey
3d9113c16e
Add a bit more padding to tests so they pass on osx with -race
7 years ago
Ethan Buchman
bfcc0217f1
Merge pull request #93 from tendermint/release/0.5.0
Release/0.5.0
7 years ago
Ethan Buchman
e6be03db31
update license and changelog
7 years ago
Anton Kaliaev
b166d627f3
bump up version to 0.5.0
7 years ago
Anton Kaliaev
303b6df812
update changelog
7 years ago
Anton Kaliaev
283462dfe4
Merge pull request #86 from tendermint/fix-lint
fix warnings
7 years ago
Anton Kaliaev
c325ce2182
use NoErrorf and Errorf functions
7 years ago
Anton Kaliaev
27ab1f6bd9
Merge pull request #90 from tendermint/feature/throttle-timer
test timers
7 years ago
Ethan Frey
26abd65e34
Add tests for repeat timer
7 years ago
Ethan Frey
53cdb6cf82
Demo throttle timer is broken
7 years ago
Petabyte Storage
4769719a4b
fix Errorf
7 years ago
Anton Kaliaev
d625020c90
Merge pull request #89 from tendermint/license
add license file (Fixes #87 ) [ci skip]
7 years ago
Anton Kaliaev
3af6044fdf
add license file ( Fixes #87 ) [ci skip]
7 years ago
Petabyte Storage
ebc543ebe3
fix warnings
7 years ago
Anton Kaliaev
21fb781989
Merge pull request #84 from tendermint/85-indexing
query#Conditions for indexing
7 years ago
Anton Kaliaev
c9694b1ba1
fix warnings
7 years ago
Anton Kaliaev
3822727981
add Conditions function
Refs https://github.com/tendermint/tendermint/pull/835
7 years ago
Anton Kaliaev
850fd24ee9
Merge pull request #85 from tendermint/85-indexing-2
IntInSlice and StringInSlice functions
7 years ago
Anton Kaliaev
33abe87c5b
IntInSlice and StringInSlice functions
Refs https://github.com/tendermint/tendermint/pull/835
7 years ago
Ethan Buchman
1e12754b3a
Merge pull request #75 from tendermint/45-change-common-start-signature
change common start signature
7 years ago
Ethan Buchman
4d991acae0
common: comments for Service
7 years ago