Christopher Goes
48672c4c0b
More comments, update sim for NextValSet
2018-10-04 18:22:51 +02:00
Rigel
324bdaf55d
Merge PR #2394 : Split up UpdateValidator into distinct state transitions applied only in EndBlock
2018-10-03 18:37:06 +02:00
Christopher Goes
17983460b8
Merge PR #2219 : Update to Tendermint 0.24 (except NextValSet offsets)
2018-10-03 17:48:23 +02:00
ValarDragon
bb624b36aa
simulation: Use a simulation.Account struct
...
This removes privkeys and addresses from function signatures.
This comes with a 11% performance improvement to the simulator,
as we no longer keep recomputing the pubkeys.
Once we move the transient store clearing to endblock, we can
further raise the size of make test_sim_gaia_fast
concretely, `make test_sim_gaia_fast` went from 16.8 seconds to 13.5 seconds on my system.
2018-09-22 20:33:32 -07:00
Sunny Aggarwal
5b8a499fd0
R4R: Simulation Queued Time Operations ( #2348 )
...
* closes #2349
* queue time operations simulation
* removed FutureTimeOperation
2018-09-18 19:47:54 -07:00
Rigel
5bf9401e87
Merge PR #2310 : staking transient store for Tendermint Updates
...
* working
* non-tests compile
* fix mounting error, working on testing
* stumped using transient store
* joon comments
* remove old comments
* resolve ibc error
* lint/sim_test
* fix determinism sim test
* sim enable commit
* docs and pending
2018-09-13 00:53:55 -04:00
Dev Ojha
e5e7c4fa0f
Merge PR #2303 : simulation: Add weighted operation
2018-09-12 15:16:52 +08:00
Alexander Bezobchuk
854aca2f7d
Merge PR #2238 : Ensure Tendermint Validator Update Invariants
2018-09-12 15:16:28 +08:00
Dev Ojha
962b04d985
Merge PR #2285 : simulation: Write logs on panic
2018-09-11 17:18:58 +08:00
Dev Ojha
173ed6a63d
Merge PR #2282 : simulation: Switch the log method from a single string to string builders
2018-09-09 23:34:09 +08:00
Dev Ojha
c800bc7a1a
Merge PR #2274 : simulation: Stop on SIGTERM
2018-09-08 16:29:24 +08:00
Christopher Goes
e410a9e38a
Merge PR #1952 : Update IAVL dependency for v0.10.0
2018-09-06 11:18:16 +02:00
ValarDragon
5ed24e44d2
simulation: Minor changes
...
Now that we properly initialize governance, a ton of governance slashing
doesn't happen in the first few blocks. Because of this, we can run through
blocks in the range (0,200) quite rapidly. This PR acknowledges that and
increases many of the default block heights.
2018-09-03 19:15:51 -07:00
Jeremiah Andrews
20f5325f47
Fix more linter errors
2018-09-03 09:52:20 -07:00
Jeremiah Andrews
2378e3431c
Fix linter errors
2018-09-03 07:58:57 -07:00
Dev Ojha
5643c0801b
Merge branch 'develop' into dev/benchmark_simulation
2018-09-01 12:37:50 -07:00
ValarDragon
3c2100793e
Address @cwgoes comments
2018-09-01 12:32:24 -07:00
Christopher Goes
1204857694
Merge PR #2122 : Implement slashing period
...
* Update PENDING.md
* SlashingPeriod struct
* Seperate keys.go, constant prefixes
* Make linter happy
* Update Gopkg.lock
* Seek slashing period by infraction height
* Slashing period hooks
* Slashing period unit tests; bugfix
* Add simple hook tests
* Add sdk.ValidatorHooks interface
* No-op hooks
* Real hooks
* Fix iteration direction & duplicate key, update Gaia
* Correctly simulate past validator set signatures
* Tiny rename
* Update dep; 'make format'
* Add quick slashing period functionality test
* Additional unit tests
* Use current validators when selected
* Panic in the right place
* Address @rigelrozanski comments
* Fix linter errors
* Address @melekes suggestion
* Rename hook
* Update for new bech32 types
* 'make format'
2018-08-31 20:01:23 -04:00
ValarDragon
4be69077fe
Fix cyclomatic complexity, add ability to use GoLevelDB
2018-08-30 11:43:56 -07:00
ValarDragon
d1a5808a75
Address Anton's comment
2018-08-30 09:32:15 -07:00
ValarDragon
b3d08bcb23
minor cleanup
2018-08-30 00:35:02 -07:00
ValarDragon
03d2f7331b
Remove code duplication
2018-08-30 00:28:15 -07:00
ValarDragon
31ca2e058b
Update PENDING
2018-08-29 23:11:14 -07:00
ValarDragon
46bbada4ee
simulation: Add benchmarking
2018-08-29 23:02:15 -07:00
ValarDragon
855222e8c3
simulation: Allow operations to specify future operations
...
The intent of this is to allow for simulating things like slashing for not
voting on a governance proposal. To test this, you would queue all the validator votes
in future blocks, and keep track of which ones you didn't slash. Then you could add queue a
"check governance slashing operation" after the voting period is over.
2018-08-27 14:27:00 -07:00
ValarDragon
4451755600
simulation: rename TestAndRunTx to Operation, make timestamp randomized
2018-08-26 19:40:53 -07:00
Christopher Goes
b8cfc1e19f
Merge PR #2068 : Minor simulation changes
2018-08-17 16:19:33 +02:00
Dev Ojha
8bb79d12ca
Fix non-deterministic map iteration in fuzzer ( #2069 )
...
* This demonstrates that the state machine is non-deterministic if there
are more than two txs in a block.
* fix non-deterministic map iteration
* (squash this) fix build errors
* (squash this) iterate using range
2018-08-16 23:45:07 +02:00
Christopher Goes
3d50567034
Merge PR #1783 : Slashing, validator set, and governance simulation
2018-08-16 17:36:15 +02:00
Christopher Goes
ad410c1e2e
Linter fixes
2018-07-18 07:50:04 +02:00
Christopher Goes
c61b1aa591
Event stats
2018-07-18 01:27:51 +02:00
Christopher Goes
253b82f92a
Makefile changes
2018-07-18 00:04:10 +02:00
Christopher Goes
cbc9d7d1da
Genesis state
2018-07-17 20:33:53 +02:00
Christopher Goes
cbcd0f0828
Restructure contd.
2018-07-17 03:25:15 +02:00