Sunny Aggarwal
9c6ef3e23c
added validatorDelegations querier endpoint
2018-11-03 22:53:45 -07:00
Sunny Aggarwal
d378db3128
added querier redelegation
2018-11-03 22:53:45 -07: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
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
Jae Kwon
1538ab8de9
Merge branch 'develop' into release/v0.25.0
2018-10-30 17:54:54 -07:00
Christopher Goes
c93b116d23
Merge PR #2616 : Block redelegations to the same validator
2018-10-30 00:05:55 +01: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
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
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
Jae Kwon
fa3730a5d2
WIP looking for bug...
2018-10-22 19:48:28 -07:00
Jae Kwon
1630c0f0f3
WIP intermediate...
2018-10-22 19:02:52 -07:00
Jae Kwon
ea565baa60
WIP intermediate...
2018-10-22 17:49:53 -07:00
Christopher Goes
7f43860ca9
Merge branch 'cwgoes/check-supply-in-simulation' of github.com:cosmos/cosmos-sdk into cwgoes/check-supply-in-simulation
2018-10-23 02:39:25 +02:00
Jae Kwon
c3008d585b
Add more useful logging
2018-10-22 16:24:19 -07:00
rigelrozanski
bcc31920f1
correct LastValidatorPower
...
mistake
2018-10-22 17:17:46 -04:00
Federico Kunze
64f2235f59
Delete comment
2018-10-22 22:55:47 +02: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
278d23776b
call hook on slashing
2018-10-22 14:59:00 -04:00
Federico Kunze
8415d8056f
export validator unds and reds queriers
2018-10-22 12:12:05 +02:00
Federico Kunze
06d0198392
Added querier tests
2018-10-22 12:03:10 +02:00
Federico Kunze
4ed4c99141
More redelegation unit tests
2018-10-22 11:59:06 +02:00
Federico Kunze
77177b2861
Merge develop and conflicts
2018-10-22 11:18:51 +02: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
5416af8a7a
LastValidatorPower -> LastValidator
2018-10-21 15:28:14 -07:00
Jae Kwon
015b829a54
GetValidatorsBonded -> LastValidators etc
2018-10-21 15:26:58 -07:00
Christopher Goes
5aae4740db
Merge PR #2542 : validator outgoing redelegations and unbonding delegations
2018-10-21 23:50:04 +02: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
Federico Kunze
77d7fb0ba5
add comment
2018-10-20 22:42:22 +02:00
Federico Kunze
3af2a09c3d
Delete Delegation
2018-10-20 22:39:03 +02:00
Federico Kunze
debed9cd38
Fixed exported queriers
2018-10-20 22:31:26 +02:00
Federico Kunze
152b3bd67b
Split delegator summary endpoint
2018-10-20 22:25:50 +02:00
Federico Kunze
8999a4d719
Add validator unbonds
2018-10-20 21:30:07 +02:00
Federico Kunze
9cdd2d07ef
PENDING and minor querier test
2018-10-20 20:38:07 +02:00
Federico Kunze
15371dc364
Validator redelegation endpoint and querier
2018-10-20 20:31:20 +02:00
Christopher Goes
c9e5c324c4
Merge branch 'develop' into cwgoes/check-supply-in-simulation
2018-10-20 01:40:18 +02:00
Federico Kunze
57277d1143
Merge PR #2537 : Staking REST utils refactor and querier tests (pt 1 redelegation PR)
2018-10-20 00:49:10 +02:00
Christopher Goes
7770aec306
Withdraw rewards on bonded to unbonding
2018-10-20 00:13:44 +02:00
Christopher Goes
843ccaf615
Remove comment
2018-10-19 22:33:21 +02:00
Christopher Goes
2e8f354367
Fixup stake hooks (hopefully...)
2018-10-19 22:26:28 +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
Christopher Goes
375e821e98
Merge branch 'develop' into cwgoes/check-supply-in-simulation
2018-10-19 20:02:48 +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
c3d3a7935b
Merge branch 'develop' into cwgoes/check-supply-in-simulation
2018-10-19 19:50:54 +02:00
Federico Kunze
ad355d6c69
Merge PR #2444 : Standardize REST error responses
2018-10-19 18:55:20 +02:00
Christopher Goes
d21f93afb0
Simulation debugging contd.
2018-10-19 03:55:14 +02:00
Christopher Goes
4779359e29
Linter, enable simulated distribution msgs again
2018-10-19 03:21:11 +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
06c7e27115
Merge branch 'develop' into cwgoes/check-supply-in-simulation
2018-10-18 21:59:38 +02:00
Christopher Goes
e099491daa
Merge PR #2526 : Distribution fixes from simulation
2018-10-18 21:58:57 +02:00
Sunny Aggarwal
505c356f20
Merge PR #2514 : Refactor validator deletion
2018-10-18 21:58:18 +02:00
Sunny Aggarwal
b51d41a2e3
added sdk time format tests, const, and removed duplicate in stake module
2018-10-17 01:03:56 -07:00
Sunny Aggarwal
e419396bd1
fixed time key marshal ( #2516 )
...
Do not use Amino Binary for key sorting.
2018-10-16 23:09:19 -07:00
Christopher Goes
d8038fcddc
Update testcases & pending
2018-10-16 21:44:23 +02:00
Christopher Goes
abef57a9e6
Utilize Tendermint power instead
2018-10-16 21:30:52 +02:00
Christopher Goes
0d1104330f
Fix merge rename
2018-10-16 19:42:51 +02:00
Christopher Goes
2803830c7e
Merge PR #2236 : Distr-PR-5 Implement Distribution
2018-10-16 08:18:21 +02:00
Christopher Goes
c0ce451003
Merge #2500 : Block conflicting redelegations
...
* Block conflicting redelegations
* Update PENDING.md
* Add conflicting redelegation testcase
2018-10-15 21:06:31 -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
Sunny Aggarwal
6c9e71b654
Merge PR #2451 : implement validator queue
...
* unbonding redelegation queue
* address some of bez and chris review
* delete old timeslices from queue
* added Rigel's test case
* added end-time to tags
* fixed bug in staking
* removed prints
* Get -> Queue
* called Endblocker in test
* implement validator queue
* Docs and PENDING
* address federicos comments
* unexposed UnbondingToUnbonded
* no copying unbonded val array to memory
2018-10-14 20:37:06 -04:00
rigelrozanski
dba20d1725
Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution
2018-10-12 06:06:24 -04:00
mossid
42c7a09075
Merge branch 'develop' into joon/paramstore-refactor-base
2018-10-12 00:09:07 +09:00
rigelrozanski
8cb6d106d1
TestWithdrawDelegationRewardWithCommission
2018-10-11 02:26:54 -04:00
Alessio Treglia
0f4a03b44e
Alessio/server refactor ( #2472 )
...
* Add arg to PrintUnsignedStdTx() to actually operate in offline mode
* WIP simplifying server module
* Expose ExternalIP()
* Move {GenTx,Init}Cmd into gaia's new init package
2018-10-10 15:45:41 -07:00
mossid
5c92a546c6
rename store subspace, add WithTypeTable
2018-10-11 05:01:30 +09:00
mossid
03975407ba
Merge branch 'develop' into joon/paramstore-refactor-base
2018-10-10 21:20:59 +09:00
rigelrozanski
fc9bafb8d3
Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution
2018-10-09 20:19:22 -04:00
rigelrozanski
c9730329bf
...
2018-10-09 13:58:59 -04:00
rigelrozanski
600532575b
Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution
2018-10-08 20:15:17 -04:00
Christopher Goes
4814ae4df5
Merge branch 'develop' into cwgoes/nextvalset
2018-10-08 06:44:29 +02:00
Sunny Aggarwal
cd21427a7b
Merge PR #2405 : Unbonding and Redelegations Queue
2018-10-08 06:43:47 +02:00
Dev Ojha
d661ccb30e
Merge PR #2450 : Add ValidateGenesis to staking, add more tests
2018-10-08 06:12:37 +02:00
Jae Kwon
a1bc7185a4
s/bonding/unbonding/ in a comment
2018-10-07 18:48:08 -07:00
mossid
9fc7e80d48
finalize rebase
2018-10-07 01:16:11 +09:00
mossid
4bf14c5650
apply request finalize, fix lint
2018-10-07 01:12:01 +09:00
mossid
7a68b376bd
apply requests in progress
2018-10-07 01:12:01 +09:00
mossid
7d49675600
apply requests in progress
2018-10-07 01:12:01 +09:00
mossid
e7de48e375
address comments
2018-10-07 01:12:01 +09:00
mossid
cc75924182
last rereview
2018-10-07 01:12:00 +09:00
mossid
d6105c5855
SetFromParamStruct -> SetStruct
2018-10-07 01:12:00 +09:00
mossid
9a35b7e949
space -> store, add doc
2018-10-07 01:12:00 +09:00
mossid
fd8713ef9c
rm key & doc.go in progress
2018-10-07 01:12:00 +09:00
mossid
6d80faface
string -> []byte
2018-10-07 01:12:00 +09:00
mossid
bd6ee42c5a
finalize rebase
2018-10-07 01:12:00 +09:00
mossid
cc0e2c9523
paramstore refactor base
...
rm debug code
fix lint
fix hack.go
2018-10-07 01:11:59 +09:00
rigelrozanski
e304b9c600
debugging simulation
2018-10-05 20:32:06 -04:00
Christopher Goes
317be2bc16
Clarify ValidatorUpdateDelay
2018-10-05 19:56:17 +02:00