Jack Zampolin
f525717054
Standardize CLI Exports from Modules ( #2840 )
...
* Move query and tx commands to modules
* Move GetAccountDecoder to prevent import cycle and replace calls to it with one call in WithAccountDecoder
* Add moduleClients interface and implement in all applicable modules
* Use module clients in cli initialization
2018-11-19 09:02:34 -08:00
Christopher Goes
fd968f7d8f
R4R: Remove unused bank.MsgIssue (and prevent possible panic) ( #2855 )
...
* Remove all bank.MsgIssue code
2018-11-19 07:42:53 -08:00
Sunny Aggarwal
8d6b0929fb
Codespaces as Strings ( #2821 )
2018-11-16 09:12:24 -08:00
Alessio Treglia
7b7d45ddd2
Merge PR #2800 : Limit total number of signatures per transaction
...
* Limit total number of signatures per transaction
* Fail if limit is exceeded
* Loop over all sigs and count subkeys
* No need for a type switch, adopt early return
* Test rejection logic
* Mention sigs limit
2018-11-15 15:30:24 +01:00
gamarin2
addcfbf5cb
Documentation Structure Change and Cleanup ( #2808 )
...
* Update docs/sdk/clients.md
* organize ADR directory like tendermint
* docs: move spec-proposals into spec/
* remove lotion, moved to website repo
* move getting-started to cosmos-hub, and voyager to website
* docs: move lite/ into clients/lite/
* move introduction/ content to website repo
* move resources/ content to website repo
* mv sdk/clients.md to clients/clients.md
* mv validators to cosmos-hub/validators
* move deprecated sdk/ content to _attic
* sdk/modules.md is duplicate with modules/README.md
* consolidate remianing sdk/ files into a single sdk.md
* move examples/ to docs/examples/
* mv docs/cosmos-hub to docs/gaia
* Add keys/accounts section to localnet docs
2018-11-14 11:44:17 -08:00
Christopher Goes
2bff5c2838
Merge PR #2748 : Fix governance simulation, more import/export work
2018-11-14 19:20:50 +01:00
Sunny Aggarwal
d1614ebb7e
R4R: Query Gov Params ( #2576 )
...
* gov query params
2018-11-13 15:45:37 -08:00
Christopher Goes
267728f025
Clarify comment
2018-11-13 15:46:14 +01:00
Christopher Goes
3686a3f47d
Only apply validator set updates on initial genesis
2018-11-13 15:38:29 +01:00
Christopher Goes
10713e3c8a
Working on stake import/export
2018-11-13 15:08:14 +01:00
Christopher Goes
d2a53539dd
Merge branch 'develop' into cwgoes/fix-gov-sim-more-import-export
2018-11-13 14:23:15 +01:00
Federico Kunze
a6af76e4be
Merge branch 'sunny/get_all_delegations_validator_querier' of https://github.com/cosmos/cosmos-sdk into sunny/get_all_delegations_validator_querier
...
Merge
2018-11-12 23:13:05 +01:00
Federico Kunze
7dfeb7d27d
use newQuery...Params
2018-11-12 23:12:25 +01:00
Jack Zampolin
b255a7d59f
Merge branch 'develop' into sunny/get_all_delegations_validator_querier
2018-11-12 14:09:18 -08:00
Jack Zampolin
97c0251bf7
Fix redelegation command
2018-11-12 13:01:00 -08:00
Jack Zampolin
b9b6f26c97
Merge pull request #2761 from WALL-E/patch-1
...
fix typo
2018-11-12 12:21:31 -08:00
Jack Zampolin
0345f38639
Merge pull request #2682 from cosmos/dev/sim_msg_edit_val
...
R4R: Make the simulator create the new comission rate sensibly
2018-11-12 11:13:00 -08:00
Christopher Goes
bbf8e54616
Merge PR #2719 : Cleanup bank keeper
...
* Cleanup bank keeper
* Address style comments
2018-11-12 20:06:28 +01:00
Christopher Goes
0228d8f694
Merge branch 'develop' into dev/sim_msg_edit_val
2018-11-12 19:57:54 +01:00
Jack Zampolin
b7daf23366
R4R: Fix unbonding command flow ( #2727 )
2018-11-12 19:55:24 +01:00
Alessio Treglia
70826495b8
Merge PR #2752 : Don't hardcode bondable denom
2018-11-12 19:54:18 +01:00
Christopher Goes
2b3226854c
Correctly set return code
2018-11-12 17:25:13 +01:00
Jae Kwon
183c7b21b2
use defer
2018-11-11 19:09:12 -08:00
zhangzheng
3bc245e198
fix typo
...
I think it might be a spelling mistake
2018-11-11 09:20:30 +08:00
Christopher Goes
241f6364e9
Merge branch 'develop' into cwgoes/fix-gov-sim-more-import-export
2018-11-09 16:55:20 +01:00
rigelrozanski
b1ba6a4455
add back in PeriodicInvariant
2018-11-09 10:31:56 -05:00
Christopher Goes
d761eb7282
Address remaining comments from #2690
2018-11-09 16:26:08 +01:00
Christopher Goes
8a58fdf634
Merge branch 'develop' into rigel/sim-cleanup
2018-11-09 16:16:01 +01:00
Christopher Goes
4d1246dae9
Merge branch 'develop' into sunny/get_all_delegations_validator_querier
2018-11-09 15:28:03 +01:00
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
rigelrozanski
bfc7944b55
val comments
2018-11-08 10:32:53 -05:00
rigelrozanski
a9ef83bc4a
compiling
2018-11-08 01:57:37 -05:00
rigelrozanski
5f289e5fdd
event stats object, more general cleanup
2018-11-08 00:54:12 -05:00
rigelrozanski
eb16a01666
util cleanup
2018-11-08 00:22:16 -05:00
rigelrozanski
fee0763b5e
mock tendermint
2018-11-08 00:12:51 -05:00
rigelrozanski
ff327049ee
assertAllInvarients changes, Operation reorg
2018-11-07 23:55:48 -05:00
rigelrozanski
1ee6c3295d
operations functions
2018-11-07 23:26:02 -05:00
Dev Ojha
817f515956
Merge branch 'develop' into dev/sim_msg_edit_val
2018-11-07 13:26:00 -08:00
Aleksandr Bezobchuk
845dd68de0
Address style comments
2018-11-07 14:46:09 -05:00
rigelrozanski
4970754338
fix some duplicate to get passing
2018-11-07 14:42:00 -05:00
rigelrozanski
b5a205eb15
minimizing indentation
2018-11-07 12:19:58 -05:00
rigelrozanski
980dd78c62
rename ambig naming of queueOperations
2018-11-07 12:00:13 -05:00
rigelrozanski
ea7a5ea1a8
reorganize more
2018-11-07 11:57:53 -05:00
rigelrozanski
78c3430bb3
moving stuff around a bit, trying to get rid of types
2018-11-07 11:00:24 -05:00
rigelrozanski
6a7c4d1c86
rand utile
...
...
2018-11-07 10:37:45 -05:00
rigelrozanski
74b2a90087
whitespacing
2018-11-07 10:28:18 -05:00
Aleksandr Bezobchuk
812784c940
Cleanup bank keeper
2018-11-07 09:27:20 -05:00
Alexander Bezobchuk
8f690b5b6c
Merge PR #2714 : Add commission data to MsgCreateValidator signature bytes
2018-11-07 13:55:59 +01:00
Jae Kwon
2a3d1f1e87
Fix coins.IsLT() impl ( #2686 )
...
* Fix coins.IsLT() impl
* Fix coin.IsLT() impl
* Coins.IsLT -> Coins.IsAllLT etc
2018-11-07 00:14:48 -08:00
Sunny Aggarwal
1d3a04a61c
Switch gov proposal-queues to use iterators ( #2638 )
...
* switched gov proposals queue to use iterators
* update gov spec
* update proposal.Equal
* Amino api change
* switched proposalID to uint64
* renamed Gov Procedures to Params
* s/ActiveProposalQueueProposalKey/KeyActiveProposalQueueProposal/g
* numLatestProposals -> Limit
* fixed staking invariant breakage because of gov deposits
* Send deposits to DepositedCoinsAccAddr or BurnedDepositCoinsAccAddr
2018-11-06 23:33:18 -08:00
Sunny Aggarwal
cc652a36c7
addressed fede's comment
2018-11-05 16:50:58 -08:00
Federico Kunze
080a7818db
Update x/stake/client/rest/query.go
...
Co-Authored-By: sunnya97 <sunnya97@gmail.com>
2018-11-05 16:42:49 -08:00
Christopher Goes
dfddac394d
Merge branch 'develop' into sunny/get_all_delegations_validator_querier
2018-11-05 11:56:32 +01:00
Christopher Goes
cb3cb27b81
Merge branch 'develop' into dev/sim_msg_edit_val
2018-11-05 11:45:53 +01: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
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
ValarDragon
f0024e1a73
Make the simulator create the new comission rate sensibly
2018-11-04 15:55:07 -08:00
Sunny Aggarwal
4c3ac3f512
addressed comments
2018-11-03 22:56:33 -07:00
Sunny Aggarwal
0fc536a4af
rebased
2018-11-03 22:56:33 -07:00
Sunny Aggarwal
327f7e1673
address other comments
2018-11-03 22:56:33 -07:00
Sunny Aggarwal
eeff820427
removed redelegation stuff
2018-11-03 22:56:33 -07:00
Sunny Aggarwal
f8b030aece
cli fixes
2018-11-03 22:56:33 -07:00
Sunny Aggarwal
2d429731b3
LCD and CLI
2018-11-03 22:55:38 -07:00
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
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