Christopher Goes
94f45311a0
Fix state export/import, add to CI ( #2690 )
...
* Update slashing import/export
* More slashing.WriteGenesis
* Add test import/export to CI
* Store equality comparison.
* Fix validator bond intra-tx counter
* Set timeslices for unbonding validators
* WriteGenesis => ExportGenesis
* Delete validators from unbonding queue when re-bonded
* Hook for validator deletion, fix staking genesis tests
2018-11-08 16:28:28 -08:00
Jae Kwon
336415baea
Fix simulation bugs; Incorprates #2676 from Sunny ( #2677 )
...
* Fix simulation bugs; Incorprates #2676 from Sunny
* Address review feedback; Update PENDING
2018-11-04 22:11:03 -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
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
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
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
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
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
rigelrozanski
5a559f75c5
simulation stop early with no proposers
2018-10-22 23:55:49 -04:00
Jae Kwon
fa3730a5d2
WIP looking for bug...
2018-10-22 19:48:28 -07:00
Jae Kwon
ea565baa60
WIP intermediate...
2018-10-22 17:49:53 -07:00
Jae Kwon
c3008d585b
Add more useful logging
2018-10-22 16:24:19 -07:00
rigelrozanski
c4d7747a56
Merge remote-tracking branch 'origin/cwgoes/check-supply-in-simulation' into jae/check-supply-in-simulation
2018-10-22 15:51:52 -04:00
rigelrozanski
a3447cd480
debug cleanup
2018-10-22 15:51:27 -04:00
rigelrozanski
278d23776b
call hook on slashing
2018-10-22 14:59:00 -04:00
Jae Kwon
471ddeef3c
tweak debug output
2018-10-22 09:50:17 -07:00
Jae Kwon
19225fc5d4
Print debugging info
2018-10-22 02:42:40 -07:00
Jae Kwon
1cc74320df
Replicate Rigel's changes but w/ modifications as discussed + some name changes
2018-10-22 01:46:47 -07:00
Jae Kwon
3fa5778921
Update naming (BondedValidatorIndex->ValidatorsBondedIndex) and add some comments
2018-10-21 12:02:45 -07:00
Alessio Treglia
6014089fa1
Rename AccountMapper to AccountKeeper
...
Closes : #2540
2018-10-20 23:22:48 -07:00
Christopher Goes
c88fc481d4
Fix linter issues
2018-10-20 01:05:07 +02:00
Christopher Goes
255a6a5db8
Cleanup to one hook
2018-10-20 00:19:10 +02:00
Christopher Goes
7770aec306
Withdraw rewards on bonded to unbonding
2018-10-20 00:13:44 +02:00
rigelrozanski
a6ef3c42aa
use power instead of total tokens
2018-10-19 17:41:39 -04:00
Christopher Goes
6c9ad8c031
Add sanity checks
2018-10-19 21:58:05 +02:00
Christopher Goes
4f719d60cd
Remove the print statement
2018-10-19 20:59:51 +02:00
Rigel
d9916f99eb
bugfix ( #2535 )
2018-10-19 20:58:37 +02:00
Christopher Goes
22cb6983b7
Merge branch 'develop' into cwgoes/check-supply-in-simulation
2018-10-19 20:36:55 +02:00
Rigel
b48d0d5623
Merge PR #2527 : Minting
2018-10-19 20:36:00 +02:00
Alessio Treglia
593921d04d
Merge PR #2524 : Replace GenTx with StdTx
...
Rework the process of loading a genesis.json file to load a starting app state and set of initial transactions to process.
* New function to create genesis account from MsgCreateValidator
* Add arg to PrintUnsignedStdTx() to actually operate in offline mode
* New func processStdTxs()
* Remove gen-tx command
* Cleanup, return validators as they need to be written into genesis.json
* Modify gaiad init to allow auto-create of stdTx
* Remove server/testnet.go
* Don't load node_key.json, which might not be available
* Get the txs through DeliverTx
* Add app.slashingKeeper.AddValidators at the end of genesis
* On InitChain(), Signature's account number must be 0
* Add (tentative?) command to generate {node_key,priv_validator}.json files
* Reintroduce gaiad testnet
* Prompt user for passwords
* Update gaia to work with auth.StdTx
* Remove test_utils, NewTestGaiaAppGenState is now deprecated
* Combine --genesis-format and --generate-only
* Improve sign command's --offline flag documentation
* Moniker must be set
* Call app.slashingKeeper.AddValidators() even if len(txs) == 0
* Refactoring, introduce gaiad init --skip-genesis, code cleanup
* Drop unnecessary workaround to make lcd_tests pass
* Reintroduce gentx
* Simple name changes, GenesisState.Txs -> .GenTxs; OWK -> OverwriteKey; OverwriteKeys -> OverwriteKey
2018-10-19 20:00:27 +02:00
Christopher Goes
42ae2671c2
Simulation fixes work-in-progress
2018-10-19 03:08:25 +02:00
Christopher Goes
25ce0dea00
Update stake module simulation and fix linter errors
2018-10-18 22:08:00 +02:00
Christopher Goes
e099491daa
Merge PR #2526 : Distribution fixes from simulation
2018-10-18 21:58:57 +02:00
Christopher Goes
b700107bec
Add simulated distribution msgs
2018-10-17 00:25:31 +02:00
Christopher Goes
7d46b8b50c
Alphanumeric parameter keys
2018-10-16 19:27:16 +02:00
Christopher Goes
3f59cf1517
Merge branch 'develop' into cwgoes/fix-signing-info-bugs
2018-10-16 19:23:57 +02:00
rigelrozanski
32e0f14de2
rework to correctly use previous vote info
2018-10-15 22:09:13 -04:00
rigelrozanski
03b92603ed
oh
2018-10-15 17:03:06 -04:00
rigelrozanski
076053d5b9
proposer reward params to global param
2018-10-15 16:12:42 -04:00
rigelrozanski
2f4a01bcba
address @ValarDragon comments, param store update
2018-10-15 15:51:51 -04:00
rigelrozanski
5de0c9a1f8
Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution
2018-10-15 02:43:36 -04:00
rigelrozanski
2ece2ff37c
address @cwgoes comments
2018-10-15 02:34:01 -04:00
rigelrozanski
06fa518e30
address @cwgoes comments, add in precommit calculation
2018-10-12 07:15:13 -04:00
rigelrozanski
7b1f4a87ea
finished off validator tests
2018-10-12 06:06:01 -04:00