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
Ethan Buchman
a2f7898b6d
db: fix c and go iterators
7 years ago
Ethan Buchman
d4aeca8ce3
fixes from @melekes
7 years ago
Ethan Buchman
318982c0ba
checkKeyCondition -> IsKeyInDomain
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
Jae Kwon
5636a02d03
Remove GetError() from Iterator
7 years ago
Ethan Buchman
edf07760d6
db: fsdb iterator
7 years ago
Ethan Buchman
bcacaf164b
db: cleveldb iterator
7 years ago
Ethan Buchman
3e5dbef6a2
db: goleveldb iterator
7 years ago
Ethan Buchman
39e40ff5ce
db: memdb iterator
7 years ago
Ethan Buchman
bb115d4d61
cleanupDBDir
7 years ago
Ethan Buchman
ba8c5045b5
db: fixes to fsdb and clevledb
7 years ago
Ethan Buchman
c547caf04f
db: some test cleanup
7 years ago
Ethan Buchman
5b7f90dfb2
db: test panic on nil key
7 years ago
Ethan Buchman
781f6c5d22
db: some comments in types.go
7 years ago
Jae Kwon
7f650cea86
Remove Prev from Iterator
7 years ago
Jae Kwon
0d03cd9e31
Make it compile
7 years ago
Jae Kwon
50a30aafc1
New canonical Iterator
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
Jae Kwon
a0b692c86d
Add PushBytes to Heap
7 years ago
Jae Kwon
03dfb724c7
Change heap.Push to mean int priority
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
Jae Kwon
988e190ef7
Deprecated Panic*
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