Commit Graph

1330 Commits

Author SHA1 Message Date
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
Christopher Goes 74780c6608 Merge branch 'develop' into cwgoes/check-supply-in-simulation 2018-10-18 02:51:54 +02:00
Christopher Goes c961a684c9
Merge PR #2517: SDK Sortable Time Format Test 2018-10-17 18:49:20 +02:00
Federico Kunze e5b664f154 fixed naming for proposal id and time 2018-10-17 14:26:25 +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 1d4b595006 Correctly set power in vote info 2018-10-17 00:34:16 +02:00
Christopher Goes b700107bec Add simulated distribution msgs 2018-10-17 00:25:31 +02: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 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
Christopher Goes 2803830c7e
Merge PR #2236: Distr-PR-5 Implement Distribution 2018-10-16 08:18:21 +02:00
rigelrozanski 32e0f14de2 rework to correctly use previous vote info 2018-10-15 22:09:13 -04: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
Christopher Goes f9877508e5 Address @rigelrozanski comments 2018-10-15 23:58:39 +02:00
Christopher Goes c0c5e293a8 iter.Close() 2018-10-15 23:09:56 +02:00
Christopher Goes 7bf8a41463 Fix typo 2018-10-15 23:09:16 +02:00
Christopher Goes e3fa9820ec Fix linter warning 2018-10-15 23:06:46 +02:00
rigelrozanski 03b92603ed oh 2018-10-15 17:03:06 -04:00
Christopher Goes 83f7a4cb7b Bugfix; update slashing spec 2018-10-15 23:01:29 +02:00
rigelrozanski 076053d5b9 proposer reward params to global param 2018-10-15 16:12:42 -04:00
rigelrozanski 43e4396bec Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution 2018-10-15 15:52:01 -04:00
rigelrozanski 2f4a01bcba address @ValarDragon comments, param store update 2018-10-15 15:51:51 -04:00
Christopher Goes ec53a14b57 Fix testcases 2018-10-15 21:51:26 +02:00
Christopher Goes 9ec35a0ae4 Clear array when validator is jailed 2018-10-15 21:44:23 +02:00
Christopher Goes 096a8bb9ec Further clarification of nomenclature 2018-10-15 21:20:37 +02:00
Joon 047c3d1456
Merge branch 'develop' into joon/2490-copy-godocs 2018-10-16 04:14:40 +09:00
Christopher Goes 6e0f3d6baf Update function names to clarify semantics 2018-10-15 21:11:32 +02:00
Christopher Goes fa372d3b82 Test correct JailedUntil 2018-10-15 21:08:56 +02:00
Christopher Goes 2c4d9a0be4 Merge branch 'develop' into cwgoes/fix-signing-info-bugs 2018-10-15 21:04:49 +02:00
mossid 8c978d2476 add tests and restriction for TypeTable 2018-10-16 03:02:48 +09:00
Federico Kunze 8e1d0fbac0 Add option to indent response 2018-10-15 10:41:37 +02:00
Federico Kunze 63f8669c4a Merge branch 'develop' of https://github.com/cosmos/cosmos-sdk into fedekunze/2478-gov-deposits-rest
Pull
2018-10-15 10:31:30 +02: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
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
mossid 73d83b02cb typo 2018-10-14 02:50:32 +09:00
mossid fb78f1d0af add docs, fix GetSubspace, address comments
rm Subspace.ptr
2018-10-14 02:44:29 +09:00
Christopher Goes dd8b574668
Merge PR #2232: Paramstore Refactor Base 2018-10-13 18:11:30 +02:00
Federico Kunze b1109180ca add header 2018-10-12 19:12:57 -07:00
Federico Kunze f8486aeca5 Add deposits endpoint and tests 2018-10-12 19:05:22 -07:00
Christopher Goes 1ff2e865a8 Back to greater than 2018-10-12 21:15:39 +02:00
Christopher Goes bdfb10f551 Clarify testcase 2018-10-12 21:10:55 +02:00
Christopher Goes a83535aef3 Greater than to greater than or equal to 2018-10-12 21:09:23 +02:00
rigelrozanski 06fa518e30 address @cwgoes comments, add in precommit calculation 2018-10-12 07:15:13 -04:00
rigelrozanski dba20d1725 Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution 2018-10-12 06:06:24 -04:00
rigelrozanski 7b1f4a87ea finished off validator tests 2018-10-12 06:06:01 -04:00
rigelrozanski 94731a502a some validator dist tests 2018-10-12 05:51:00 -04:00
rigelrozanski a60b91b7b2 bugfix form TestWithdrawDelegationRewardTwoDelegatorsUneven 2018-10-12 05:37:30 -04:00
rigelrozanski f3c0496c99 TestWithdrawDelegationRewardsAll 2018-10-12 04:11:09 -04:00
Christopher Goes 8c2c9dba8a Update block height on validator bonding 2018-10-12 00:15:58 +02:00
Christopher Goes 5fd7297e25 Count missed blocks instead of signed blocks 2018-10-12 00:04:44 +02:00
Christopher Goes f6e92df3fa Create signing info struct on validator bond hook 2018-10-11 22:48:00 +02:00
mossid 42c7a09075 Merge branch 'develop' into joon/paramstore-refactor-base 2018-10-12 00:09:07 +09:00
Christopher Goes dbd4f30b39 Merge branch 'develop' into dev/lock_tools 2018-10-11 08:48:15 +02:00
rigelrozanski 8cb6d106d1 TestWithdrawDelegationRewardWithCommission 2018-10-11 02:26:54 -04:00
rigelrozanski 8e378e2b2d got basic delegation tests working 2018-10-11 02:14:06 -04:00
rigelrozanski f4f39ae03f allocation tests 2018-10-10 23:16:49 -04:00
rigelrozanski 900a5f47f6 keeper_test 2018-10-10 22:53:25 -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
rigelrozanski 3b5e57be08 ctx with proposer, working through allocation test 2018-10-10 17:43:47 -04: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
ValarDragon 9e334afad0 Lock binary dependencies to a specific commits / versions
This is basically copying over @anton's great script!

Also had to run `make format` to make this pass `test_lint`.
This PR also makes the make commands for tools further align
with the tendermint implementation.
2018-10-09 23:52:36 -07:00
rigelrozanski 22de85651f fix distr initialization 2018-10-09 21:59:07 -04:00
rigelrozanski 52316d9ef6 fix initialization of the test 2018-10-09 21:43:23 -04:00
rigelrozanski ace19d9264 Merge branch 'rigel/fee-distribution' of https://github.com/cosmos/cosmos-sdk into rigel/fee-distribution 2018-10-09 20:37:47 -04:00
rigelrozanski 151a81eddb staking changes test_cover fixes 2018-10-09 20:37:22 -04:00
rigelrozanski fc9bafb8d3 Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution 2018-10-09 20:19:22 -04:00
Christopher Goes 6d4975e2c2 R4R: Fix simulation proposer (#2460)
* Correctly set proposer in randomized simulation

* Return nil if no validators are present
2018-10-09 19:14:46 -04:00
rigelrozanski c9730329bf ... 2018-10-09 13:58:59 -04:00
rigelrozanski 46fe52bbac create test initialization for distr 2018-10-09 11:27:26 -04:00
Christopher Goes 9c53f5aadf Merge branch 'develop' into cwgoes/nextvalset 2018-10-09 06:33:19 +02:00
HaoyangLiu 1aebe103ba Merge branch 'develop' of https://github.com/cosmos/cosmos-sdk into bianjie/lcd-lite-swagger-ui 2018-10-09 09:21:45 +08:00
rigelrozanski 600532575b Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution 2018-10-08 20:15:17 -04:00
rigelrozanski 142f42ecc7 ... 2018-10-08 20:14:03 -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 a43a97bf10 address comments 2018-10-07 01:12:00 +09:00
mossid 2b3630eb6b finalize rebase 2018-10-07 01:12:00 +09:00
mossid a766e0f2d9 address comments 2018-10-07 01:12:00 +09:00
Aleksandr Bezobchuk 67ac8c55b9 More minor cleanup 2018-10-07 01:12:00 +09:00
Aleksandr Bezobchuk 2aad1bd1b0 Minor doc and formatting updates 2018-10-07 01:12:00 +09:00
Aleksandr Bezobchuk c3d94266a1 Fix gov keeper unit tests 2018-10-07 01:12:00 +09:00
mossid c8746eccea fix lint 2018-10-07 01:12:00 +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 73b34353bf fix lint 2018-10-07 01:12:00 +09:00
mossid 39b5b388f1 finalize rebase 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 78a89df393 fix lint 2018-10-07 01:12:00 +09:00
mossid 74bf6c6bb6 string -> []byte in keeper_test.go 2018-10-07 01:12:00 +09:00
mossid 6d80faface string -> []byte 2018-10-07 01:12:00 +09:00
mossid f33e856950 fix lint 2018-10-07 01:12:00 +09:00
mossid 37ce8d51c6 apply requests 2018-10-07 01:12:00 +09:00
mossid bd6ee42c5a finalize rebase 2018-10-07 01:12:00 +09:00
mossid 61bc1a98c4 Key.s string -> []byte 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 1ed338fc5f Fixup comments 2018-10-05 20:00:01 +02:00
Christopher Goes 317be2bc16 Clarify ValidatorUpdateDelay 2018-10-05 19:56:17 +02:00
Christopher Goes b625cf85a1 Cleanup testcase 2018-10-05 19:45:45 +02:00
Christopher Goes 482537e6c1
Merge PR #2430: Aggressive slashing simulation & fixes 2018-10-05 19:42:52 +02:00
rigelrozanski 83c2781c1c Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution 2018-10-05 13:23:01 -04:00
Christopher Goes 034163c021 Minor fixes 2018-10-05 14:58:19 +02:00
Christopher Goes 1909d8f269 Update slashing period key appropriately 2018-10-05 14:24:02 +02:00
Christopher Goes 1f12f204ce Testcase fixes, 'make format', negative pre-genesis block 2018-10-05 14:11:36 +02:00
Christopher Goes 91b755d220 Add testcase for failing to sign "extra block" 2018-10-05 13:52:30 +02:00
Christopher Goes 018aaeb443 Add testcase for slash at negative height 2018-10-05 13:40:00 +02:00
Christopher Goes a2113b24dc Address TODOs in slashing tests 2018-10-05 13:31:26 +02:00
Christopher Goes 8befc3c41f Merge branch 'develop' into cwgoes/nextvalset 2018-10-05 13:07:45 +02:00
Dev Ojha c4b243142d Merge PR #2438: Add tests for more staking key operations as requested 2018-10-05 12:42:52 +02:00
Rigel 9c9113fa3b Merge PR #2437: Distr-PR-4 Distribution Types 2018-10-05 12:41:38 +02:00
rigelrozanski 81d0f5f4a7 add wanted final test case functions 2018-10-04 21:37:40 -04:00
rigelrozanski 17dc812749 fix distribution endblocker issues 2018-10-04 20:20:43 -04:00
rigelrozanski 20a51e587c fix compile errors 2018-10-04 18:37:46 -04:00
rigelrozanski 45f0dd0e3b Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution 2018-10-04 18:33:12 -04:00
rigelrozanski eb01cb4a35 checkout distr types PR updates 2018-10-04 18:29:03 -04:00
Christopher Goes 48672c4c0b More comments, update sim for NextValSet 2018-10-04 18:22:51 +02:00
Christopher Goes 8f4d3a6cd7 Merge branch 'develop' into cwgoes/nextvalset 2018-10-04 18:11:14 +02:00
Alexander Bezobchuk 2e040dd971 Merge PR #2442: Support removal of accounts in account mapper 2018-10-04 16:20:31 +02:00
HaoyangLiu 8e1bfee6ca Add swagger-ui for key management 2018-10-04 20:36:24 +08:00
HaoyangLiu 9f67e8af20 Merge PR #2215: Add swagger-ui for gaiacli lite-server 2018-10-04 13:00:24 +02:00
rigelrozanski 3a9102e2af fix 2018-10-04 03:34:10 -04:00
rigelrozanski 4d4de3aa09 delegator_dist_info tests 2018-10-04 03:26:02 -04:00
rigelrozanski 1e74da1abe validator_info tests 2018-10-04 03:00:24 -04:00
Dev Ojha b4e8fe5e94 Merge PR #2435: Staking store keys bug fix + memory improvement
Improve memory efficiency of getting store keys

This is done by removing repeated appends, which will create a new
slice if theres insufficient capacity, and instead creating a key
of the correct size, and then copying the data into it.
2018-10-04 08:42:03 +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 4fee7913b5 Fix issue from earlier merge 2018-10-03 17:59:01 +02:00
Christopher Goes 26d43ff94a Merge branch 'develop' into cwgoes/nextvalset 2018-10-03 17:58:14 +02:00