Alessio Treglia
c3965f5509
Remove inconsistent gaiacli keys new/add dualism ( #2904 )
...
* Remove inconsistent gaiacli keys new/add dualism
2018-11-29 12:59:41 -08:00
Christopher Goes
b2b026b5e0
Merge PR #2930 : Simulation spring cleaning
...
* Update PENDING.md
* Add simple period for expensive invariants
* Remove individual module simulations
* Simulate a few more blocks
* Add README explaining reason for shell scripts
* Deduplicate scripts, log exact replication command on failure
* Refactor invariants to take sdk.Context instead of baseapp.BaseApp
* Reference all issues in PENDING.md entry
* Remove no longer used simulation.RandSetup
* Bug fixes
* Address @rigelrozanski comments
* Fix typo
2018-11-29 16:17:10 +01:00
Hendrik Hofstadt
ca43225851
Merge PR #2943 : Fix tag usage in handlers and EndBlocker
...
* Fix tag usage in handlers and EndBlocker
* Prepend action tag in baseApp
* Fix LCD
* Remove unnecessary conversion
* Fix invalid consensus pubkey in CLI tests
* Fix tag usage in cli_test
* Shorten bechify in test
* Update docs and PENDING
2018-11-29 15:34:57 +01:00
Christopher Goes
1a18a428a4
Merge PR #2842 : Fix tx search
2018-11-28 00:09:14 +01:00
Aleksandr Bezobchuk
155c553456
Refactor Gaia Lite bootstrapping
2018-11-27 16:03:53 -05:00
Federico Kunze
2d9ce3121b
updated tests
2018-11-27 16:52:27 +01:00
Federico Kunze
9c85e935fd
Merge branch 'develop' of https://github.com/cosmos/cosmos-sdk into fedekunze/2819-fix-tx-search
...
Merge develop
2018-11-27 16:38:08 +01:00
Federico Kunze
f97b934c73
few more tx search tests
2018-11-27 16:37:53 +01:00
Federico Kunze
cd812c788f
fix comments and cmd description
2018-11-27 16:02:03 +01:00
Federico Kunze
666fafb97a
add other tests and update docs
2018-11-27 15:16:33 +01:00
Federico Kunze
a2189bc672
fix tx search CLI
2018-11-27 14:37:03 +01:00
Jae Kwon
d1e76221d8
Jae/simulator improvements ( #2900 )
...
* Make simulator operations predetermined
* Use new dbm.ReverseIterator API
* Simulation speed improvements
* Pin exact revisions, not branches
* Rename 'MountStoresIAVL' to 'MountStores'
* Zero Power Block fees to community pool
2018-11-27 00:14:22 -08:00
Federico Kunze
9fdd4300f2
update cli tx search
2018-11-26 15:55:42 +01:00
Federico Kunze
60fc7c7919
Merge develop
2018-11-26 13:41:00 +01:00
Christopher Goes
ad121f1498
Add a flag to export for zero-height start ( #2827 )
...
Closes #2812
This PR adds the flag --for-zero-height to gaiad export, which runs several alterations to the application state to prepare for restarting a new chain in a consistent fashion.
It also:
* Moves Gaia's export code to cmd/gaia/app/export.go for cleaner separation.
* Fixes an inconsistency where we treated the initChainer as happening at height -1 - it should now happen at height 0, since the first header sent by Tendermint has height 1.
* Runs the runtime invariant checks on start (in initChainer)
* Adds a few auxiliary functions to clear slashing periods
* Removes the Height field from Delegation objects in x/stake, which was not used anywhere
2018-11-26 04:21:23 -08:00
frog power 4000
7cb1ba625e
blockly minting ( #2825 )
...
* update mechanism to use average block time
* correctly sets accum height for zero-delegations
* update Decimal Format()
* clip withdrawal tokens
* PositiveDelegationInvariant
* DelegatorSharesInvariant
* DelAccumInvariants
2018-11-26 04:13:47 -08:00
Alessio Treglia
4c36b0fe05
Merge PR #2881 : Don't call gaiacli tx sign. Use utils.SignStdTx() instead.
...
This is to avoid command redirection and reduce the use
of viper's global variables.
Closes : #2875
2018-11-26 12:50:33 +01:00
Sunny Aggarwal
b7da2eaa33
Merge PR #2799 : Account numbers and sequences to uint64
2018-11-26 12:29:21 +01:00
rigelrozanski
0861112b70
Merge remote-tracking branch 'origin/develop' into rigel/deliver-max-gas
2018-11-22 12:34:41 -05:00
John McDowall
f09fa33cfd
Merge PR #2802 : Correct the usage of misspelling of English word 'depositor'.
...
Throughout the codebase the misspelling 'depositer' of the English word
'depositor' has been used. This commit applies a global search and
replace to correct the misspelling.
2018-11-22 00:53:33 +01:00
Alessio Treglia
3e68e44063
Merge PR #2874 : gaiad gentx subcommands refactoring
...
* gaiad gentx subcommands refactoring
- Replace STDIN/STDOUT redirection in `gaiad gentx` with subcommands
command line options to redirect streams to file since viper does
not handle redirection well.
- Use `BuildCreateValidatorMsg` to build a `MsgCreateValidator` rather
than redirecting to `gaiacli tx stake create-validator`.
- `PrintUnsignedStdTx` now takes an `io.Writer` object.
- Mark `--pubkey`, `--amount` and `--moniker` as required flags
instead of validating them manually.
- Use stake.NewDescription() to make a new Description - ref #2835
* Refresh PENDING.md
2018-11-22 00:44:13 +01:00
rigelrozanski
6fd3132e71
lint fix, merge fix
2018-11-21 02:02:15 -05:00
rigelrozanski
70e60c2f30
Merge remote-tracking branch 'origin/develop' into rigel/deliver-max-gas
2018-11-21 01:51:56 -05:00
Jae Kwon
10bdf8fa03
Store ConsensusParams to main store
2018-11-20 16:44:49 -08:00
Jae Kwon
d911565d0b
Fix compile
2018-11-20 13:16:44 -08:00
Federico Kunze
ee4c51bb36
update cli tests
2018-11-20 14:13:05 +01:00
Alexander Bezobchuk
41fc538ac7
Add Safety Measures to Coin/Coins ( #2797 )
2018-11-20 01:22:35 -08:00
rigelrozanski
56dc2363fa
Merge remote-tracking branch 'origin/develop' into rigel/deliver-max-gas
2018-11-20 02:58:33 -05:00
Alexander Bezobchuk
6e813ab3a8
Change gas & related fields to unsigned integer type ( #2839 )
...
* Change gas & related fields to unsigned integer type
* Implement AddUint64Overflow
2018-11-19 09:13:45 -08:00
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
Jack Zampolin
9676ce7d48
Expose LCD router, allowing devs to register custom routes from their modules ( #2836 )
...
* Fixes #1081
2018-11-16 14:21:36 -08:00
Alexander Bezobchuk
15b6fa0959
Cache-wrap context during ante handler exec ( #2781 )
...
* Use cache-wrapped multi-store in ante
* Implement TestBaseAppAnteHandler
* Add reference documentation for BaseApp/CheckTx/DeliverTx
2018-11-16 10:33:47 -08:00
Sunny Aggarwal
8d6b0929fb
Codespaces as Strings ( #2821 )
2018-11-16 09:12:24 -08:00
Christopher Goes
eb27c70292
Merge branch 'develop' into alessio/validate-addr-when-adding-genesis-account
2018-11-16 11:44:41 +01:00
Christopher Goes
9a37066405
Merge PR #2841 : Check whether key passed with --name exists before redirecting to tx create-validator
...
* Check whether key passed with --name exists before redirecting to tx create-validator
* Update PENDING.md
2018-11-16 11:40:37 +01:00
rigelrozanski
4818e67145
Merge remote-tracking branch 'origin/develop' into rigel/deliver-max-gas
2018-11-16 03:32:55 -05:00
Alessio Treglia
f2b38874ef
Check whether key passed with --name exists before redirecting to tx create-validator
...
Closes : #2804
2018-11-16 05:01:34 +00:00
Christopher Goes
cf6b7ef6d8
Test runtime-assertable invariants every block ( #2807 )
...
* Initial pass
* Minor cleanup
2018-11-15 13:21:42 -08:00
Alessio Treglia
815a6de82f
R4R: Remove AppInit ( #2801 )
...
* Remove AppInit
* Update PENDING.md
2018-11-15 10:01:19 -08:00
Alessio Treglia
31ccfb5b5a
add-genesis-account: validate app state accounts
2018-11-15 15:44:27 +00:00
Christopher Goes
f1d5b808b7
Bugfix
2018-11-14 18:23:20 -08:00
Christopher Goes
42402d3f97
Check error
2018-11-14 18:23:20 -08:00
Christopher Goes
17b9afaaa7
Export specific height
2018-11-14 18:23:20 -08:00
rigelrozanski
7be5179982
Merge remote-tracking branch 'origin/develop' into rigel/deliver-max-gas
2018-11-14 14:45:02 -05: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
Jack Zampolin
f38f57dfb2
Fix CLI tests
2018-11-13 11:33:03 -08:00
Jack Zampolin
4ebe99b00f
add back in CLI command after rebase
2018-11-13 11:10:06 -08:00
Jack Zampolin
695395aca8
Merge branch 'develop' into sunny/get_all_delegations_validator_querier
2018-11-13 11:07:36 -08:00
Jack Zampolin
12ad39ea96
R4R: Reorganize CLI command structure. ( #2728 )
...
* Reorganize CLI command structure. Fixes #2575
2018-11-13 11:03:47 -08:00
rigelrozanski
ebaa39468a
modified app provider to pass genesis
2018-11-13 13:01:18 -05:00
Jack Zampolin
17c119dff7
Fix failing test
2018-11-13 08:27:42 -08:00
Christopher Goes
10713e3c8a
Working on stake import/export
2018-11-13 15:08:14 +01:00
Jack Zampolin
b255a7d59f
Merge branch 'develop' into sunny/get_all_delegations_validator_querier
2018-11-12 14:09:18 -08:00
Aleksandr Bezobchuk
964123356b
Fix required flag
2018-11-12 15:44:59 -05:00
Jack Zampolin
4df780b1dc
Merge branch 'develop' into bez/require-moniker-init
2018-11-12 12:08:38 -08:00
Jack Zampolin
ac8f2dabd4
Merge branch 'develop' into jack/query-tx-reorg
2018-11-12 11:10:52 -08:00
Christopher Goes
0228d8f694
Merge branch 'develop' into dev/sim_msg_edit_val
2018-11-12 19:57:54 +01:00
Alessio Treglia
70826495b8
Merge PR #2752 : Don't hardcode bondable denom
2018-11-12 19:54:18 +01:00
Aleksandr Bezobchuk
8c14b1d77f
Fix test coverage
2018-11-12 08:45:05 -05:00
Aleksandr Bezobchuk
08a1667246
Require moniker instead of generating a random one
2018-11-12 08:27:26 -05:00
Aleksandr Bezobchuk
29bec833f3
Update moniker prefix
2018-11-12 08:16:47 -05:00
Aleksandr Bezobchuk
156370ea9c
Generate random moniker when missing
2018-11-12 08:15:08 -05:00
Jack Zampolin
056e75c30b
Merge pull request #2704 from cosmos/alessio/utility-to-add-accts-to-genesis
...
R4R: Add small utility to add account to genesis.json after gaiad init
2018-11-09 09:40:46 -08:00
Alessio Treglia
201abfec8c
Add --chain-id to testnet command
2018-11-09 15:25:14 +00:00
Christopher Goes
4d1246dae9
Merge branch 'develop' into sunny/get_all_delegations_validator_querier
2018-11-09 15:28:03 +01:00
Alessio Treglia
8a7c4900f4
s/WriteGenesisFile/ExportGenesisFile/
2018-11-09 10:59:11 +00:00
Alessio Treglia
4f6f8e09ae
Add small utility to add account to genesis.json after gaiad init
2018-11-09 10:52:28 +00: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
Federico Kunze
0ff12bb57a
Update cmd/gaia/cmd/gaiacli/main.go
...
Co-Authored-By: jackzampolin <jack.zampolin@gmail.com>
2018-11-08 08:25:18 -08:00
Jack Zampolin
8f4c7df033
Address PR comments
2018-11-08 08:24:34 -08:00
Jack Zampolin
1aae086f49
Fix typo
2018-11-07 16:48:55 -08:00
Jack Zampolin
0ab5d7639b
Fix gobash CLI testing
2018-11-07 16:42:34 -08:00
Jack Zampolin
cade5f552c
Address linting issues
2018-11-07 15:38:30 -08:00
Jack Zampolin
c20e383d7f
Fix missing flags issue
2018-11-07 15:35:12 -08:00
Jack Zampolin
d4fb6d4ebe
Reorganize CLI command structure. Fixes #2575
2018-11-07 15:03:00 -08:00
Dev Ojha
817f515956
Merge branch 'develop' into dev/sim_msg_edit_val
2018-11-07 13:26:00 -08:00
Alexander Bezobchuk
4f46a4c4d5
Update testnet to use canonical genesis time ( #2692 )
...
* Update testnet to use canonical genesis time
* Fix linting in genesis test
2018-11-07 00:19:06 -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
Christopher Goes
dfddac394d
Merge branch 'develop' into sunny/get_all_delegations_validator_querier
2018-11-05 11:56:32 +01:00
Christopher Goes
37abad4cc3
'make format'
2018-11-05 11:47:19 +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
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
svaishnavy
9cf53f25f7
Merge PR #2614 : Configurable Bech32 prefix for SDK users
2018-10-31 20:13:13 +01:00
Alessio Treglia
53f1233f0a
s/--print-sigs/--validate-signatures/
2018-10-31 13:42:42 +00:00
Alessio Treglia
a514295128
Fix integration tests
2018-10-31 13:42:42 +00:00
Alessio Treglia
e65c02dd42
Fix integration tests
2018-10-31 13:42:42 +00:00
Dev Ojha
0d8325b859
Merge PR #2623 : Speedup simulator by switching to goleveldb
...
Due to requiring app.Commit() at the moment, golevel db is significantly faster than a memdb
2018-10-30 00:10:39 +01:00
Federico Kunze
855e0ac70a
Merge PR #2596 : Cmds for validator unbondings and redelegations
2018-10-28 22:28:12 +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
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
cd9373d6f3
Make linter happy
2018-10-23 20:34:09 +02:00
Christopher Goes
306fb8fb6d
Address @rigelrozanski comments
2018-10-23 20:33:39 +02:00
Federico Kunze
8040a56116
update depositer addr
2018-10-23 19:49:34 +02:00
Christopher Goes
edd56be952
Cleanup, additional item in PENDING.md
2018-10-23 18:29:39 +02:00