Christopher Goes
256ec0f07b
Simulation improvements (logging fix, random genesis parameters) ( #2617 )
...
* Print out initial update on every block
* Randomize simulation parameters
* Randomize initial liveness weightings
* Randomize genesis parameters
* fixed power store invariant
* IterateValidatorsBonded -> IterateBondedValidatorsByPower
* WriteValidators uses IterateLastValidators rather than IterateBondedValidatorsByPower
* fixed democoin interface
Closes #2556
Closes #2396
Via #2671 :
closes #2669
closes #2670
closes #2620
Offshoot issues:
#2618
#2619
#2620
#2661
2018-11-04 20:44:43 -08:00
Alessio Treglia
c20fcbfd8f
New genesis workflow ( #2602 )
...
New genesis workflow:
* `gaiad init` is now used to generate an empty `genesis.json`.
* Genesis accounts need to be populated manually before running
`gaiad collect-gentxs`.
* This should support starfish too, see #2615 for more info.
* Closes : #2596 #2615
* Validate validator address and address against respective account ex ante
* Fix local testnet failures
* New genesis tests
* Run make format
* Add --pubkey flag
* gaiad collect-gentxs takes no args
2018-11-04 20:26:46 -08:00
Alexander Bezobchuk
50926fffff
Update to TM v0.26.0 - Part I ( #2679 )
...
* Update to TM v0.26.0
2018-11-04 18:28:38 -08:00
yutianwu
b6443e9496
Merge PR #2653 : Add benchmark for get and set account
2018-11-02 13:36:52 +01:00
Dev Ojha
8e328c8706
Merge PR #2665 : simulation: Remove header from Invariant
...
This got introduced recently, but wasn't actually needed, hence the reversion
2018-11-02 13:35:21 +01:00
Christopher Goes
f4d3e65ef0
Merge PR #2660 : simulation: Make validator choice use validator set
...
* simulation: Make validator choice use validator set
This also had to change the default seed, since with the previous one it
actually got into a state where there were no validators left bonded, lol.
This also changes Unbond msgs from failing with almost 100% probability to now
only failing with 33% probability.
Thus more of the state machine is getting tested!
2018-11-02 00:32:55 +01:00
ValarDragon
3cffe29da7
simulation: Make validator choice use validator set
...
This also had to change the default seed, since with the previous one it
actually got into a state where there were no validators left bonded, lol.
This also changes Unbond msgs from failing with almost 100% probability to now
only failing with 33% probability.
Thus more of the state machine is getting tested!
2018-11-01 12:45:22 -07:00
Elvin
1686ba072b
Merge PR #2643 : AppendTag function usage error. append elements do not work
2018-11-01 10:26:44 +01:00
Christopher Goes
fcf5b7764b
Merge PR #2622 : Make simulation use a transition matrix for block size
...
Make simulation use a transition matrix for block size
This enables simulating periods of high load, and periods of low to no load.
(low load because future ops will still terminate in that time frame)
2018-10-31 20:10:35 +01:00
ValarDragon
835315dcaa
move typedef
2018-10-31 10:11:41 -07:00
Aleksandr Bezobchuk
5e2efd999a
perform minor doc and function cleanup
2018-10-31 17:37:50 +01:00
Alessio Treglia
dbbf0647f0
Document what --validate-signatures does
2018-10-31 13:50:01 +00:00
Alessio Treglia
6c8791f505
Nest switches
2018-10-31 13:43:20 +00:00
Alessio Treglia
84aef0d106
Apply suggestions from bez
2018-10-31 13:43:20 +00:00
Alessio Treglia
44d2347109
Set success = false when it fails
2018-10-31 13:43:20 +00:00
Alessio Treglia
9e397907be
Rename append, it's go builtin
2018-10-31 13:43:20 +00:00
Alessio Treglia
f752525d54
s/--sig-only/--signature-only/
2018-10-31 13:42:42 +00:00
Alessio Treglia
53f1233f0a
s/--print-sigs/--validate-signatures/
2018-10-31 13:42:42 +00:00
Alessio Treglia
31c062689d
Validate --name
2018-10-31 13:42:42 +00:00
Alessio Treglia
69a7c06ef7
Find better name for --print-signature-only
2018-10-31 13:42:42 +00:00
Alessio Treglia
62974e627e
Improve online docs
2018-10-31 13:41:26 +00:00
Alessio Treglia
4bf17e82b4
Improve errors reporting
2018-10-31 13:41:26 +00:00
Alessio Treglia
933592d052
Check sanity of signatures and report errors when run with --print-sigs
2018-10-31 13:41:26 +00:00
Alessio Treglia
bc583ab1d0
Various sign command improvements
...
- Exit with error if the user is attempting to sign with a key
whose address is not among those who are expected to sign
the transaction.
- Add --print-signature-only to output only the generated
signature.
2018-10-31 13:41:26 +00:00
Dev Ojha
6316e1241e
Merge PR #2644 : Simulation: Print last block when there is an error
...
There was an off by one error in the log printing function previously
2018-10-31 12:04:46 +01:00
ValarDragon
206e51079c
fix block offsets in printing simulation block number
2018-10-30 20:43:16 -07:00
Jae Kwon
1538ab8de9
Merge branch 'develop' into release/v0.25.0
2018-10-30 17:54:54 -07:00
Dev Ojha
4cde8043c5
Merge branch 'develop' into dev/sim_blocksize
2018-10-29 17:41:32 -07:00
Christopher Goes
c93b116d23
Merge PR #2616 : Block redelegations to the same validator
2018-10-30 00:05:55 +01:00
ValarDragon
100f88800b
address bez's comments
2018-10-29 09:37:42 -07:00
ValarDragon
e4b5e2c9f3
Make simulation use a transition matrix for block size
...
This enables simulating periods of high load, and periods of low to no load.
(low load because future ops will still terminate in that time frame)
2018-10-28 21:37:19 -07:00
Federico Kunze
855e0ac70a
Merge PR #2596 : Cmds for validator unbondings and redelegations
2018-10-28 22:28:12 +01:00
Christopher Goes
cce48dc68c
Docs fixes in progress while running through the release process
2018-10-26 15:47:07 +02:00
Rigel
d71f38bdac
Merge PR #2597 : Add distribution accum invariants
2018-10-26 13:42:53 +02:00
Jae Kwon
0f1fb179c4
Merge PR #2599 from cosmos/jae/dist_refactor
...
* Rename Pool -> DelRewards; PoolCommission -> ValCommision
* FeePool.Pool -> FeePool.ValPool
* WithdrawalHeight->DelPoolWithdrawalHeight
* OnValidatorBeginUnbonding
* Caught the bug's tail
* Update vi.FeePoolWithdrawalHeight upon bonding
* Fix staking slashUnbondingDelegation bug; fixes simulator failure #9
2018-10-26 13:27:55 +02:00
Christopher Goes
2a279e954f
Remove logs from prior debugging
2018-10-25 13:22:54 +02:00
Christopher Goes
234262160e
'make format'
2018-10-24 15:37:06 +02:00
HaoyangLiu
9ee9e28439
Merge PR #2462 : Add swagger-ui for gov, stake and slashing
2018-10-24 15:19:48 +02:00
Jae Kwon
f756b40a01
LastValidatorPower is also an Int
2018-10-24 00:04:06 -07:00
Sunny Aggarwal
d666658ca9
Merge PR #2553 : Renamed msg.Name() and msg.Type() to msg.Type() and msg.Route()
2018-10-23 21:23:55 +02:00
Christopher Goes
60d188ded0
Merge PR #2501 : Simulate transactions for fee distribution, simulate inflation, and fix a multitude of bugs discovered in the process of doing so
2018-10-23 21:21:37 +02:00
Christopher Goes
3d270babc0
Store last total power as sdk.Int, not sdk.Dec
2018-10-23 20:48:50 +02:00
Christopher Goes
306fb8fb6d
Address @rigelrozanski comments
2018-10-23 20:33:39 +02:00
Christopher Goes
edd56be952
Cleanup, additional item in PENDING.md
2018-10-23 18:29:39 +02:00
Christopher Goes
6bf7e02a27
Back to on-operation=false, update PENDING.md
2018-10-23 18:10:06 +02:00
Christopher Goes
33c8238392
Merge branch 'develop' into cwgoes/check-supply-in-simulation
2018-10-23 17:54:58 +02:00
Christopher Goes
be66a4950e
Remove debugging print statements
2018-10-23 15:50:35 +02:00
Christopher Goes
5790d013fe
Merge remote-tracking branch 'origin/jae/check-supply-in-simulation2' into cwgoes/check-supply-in-simulation
2018-10-23 15:43:28 +02:00
rigelrozanski
8999ee8797
re-enable simulation parameters
2018-10-23 00:53:06 -04:00
rigelrozanski
5a559f75c5
simulation stop early with no proposers
2018-10-22 23:55:49 -04:00