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
Ethan Buchman
ddd141c1c5
Merge branch 'develop' into 45-change-common-start-signature
7 years ago
Ethan Buchman
57fea1335a
Makefile and linter
7 years ago
Anton Kaliaev
c2fcc093b2
remove bool from Service#Reset
7 years ago
Anton Kaliaev
f75339264f
Merge pull request #83 from tendermint/gut-process
remove package process
7 years ago
Emmanuel Odeke
e07ad01f62
remove package process
Fixes https://github.com/tendermint/tmlibs/issues/81
That package is untested and racy, and not used except in
a test, but even that's now gutted with
https://github.com/tendermint/abci/pull/139
so the general consensus is that we sunset this package.
7 years ago
Anton Kaliaev
eb31c04f47
Merge tag 'v0.4.1' into develop
Tagged 0.4.1 release
7 years ago
Anton Kaliaev
b854baa1fc
Merge branch 'release/0.4.1'
7 years ago
Anton Kaliaev
3244f73f32
update version
7 years ago