Commit Graph

476 Commits

Author SHA1 Message Date
Jae Kwon 819af35962 Final fixes from review 2018-11-24 18:15:02 -08:00
rigelrozanski 0861112b70 Merge remote-tracking branch 'origin/develop' into rigel/deliver-max-gas 2018-11-22 12:34:41 -05:00
rigelrozanski b4b61b890c address some comments while reviewing Jaes work 2018-11-22 00:30:04 -05:00
Alexander Bezobchuk 1ea0e4c457 Merge PR #2863: Transaction ValidateBasic
* Add ValidateBasic to Tx interface
* Update BaseApp unit tests
* Add missing return in ValidateBasic
* Update ValidateBasic to use IsNotNegative
* Add pending log entry
* Add unit test TestTxValidateBasic
* Fix broken lint regression
* Add sig count check to validation
* Add test case to TestTxValidateBasic
2018-11-21 11:16:56 +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 4afd53d81b Consume block gas to tx gas limit even upon overconsumption 2018-11-20 20:07:30 -08:00
Jae Kwon 10bdf8fa03 Store ConsensusParams to main store 2018-11-20 16:44:49 -08:00
Alexander Bezobchuk 41fc538ac7 Add Safety Measures to Coin/Coins (#2797) 2018-11-20 01:22:35 -08:00
Jae Kwon 47eed3958b
Clean up Context/MultiStore usage in BaseApp (#2847) 2018-11-20 01:06:14 -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
Sunny Aggarwal 8d6b0929fb Codespaces as Strings (#2821) 2018-11-16 09:12:24 -08:00
rigelrozanski 4818e67145 Merge remote-tracking branch 'origin/develop' into rigel/deliver-max-gas 2018-11-16 03:32:55 -05: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
rigelrozanski 7be5179982 Merge remote-tracking branch 'origin/develop' into rigel/deliver-max-gas 2018-11-14 14:45:02 -05:00
rigelrozanski 956d351f68 basic structure in place 2018-11-13 11:30:06 -05:00
Christopher Goes 0e56ed9e4e Fix DiffKVStore 2018-11-13 14:36:09 +01:00
Christopher Goes d2a53539dd Merge branch 'develop' into cwgoes/fix-gov-sim-more-import-export 2018-11-13 14:23:15 +01:00
rigelrozanski 2f73cf4193 block gas meter working 2018-11-12 23:12:09 -05:00
Alessio Treglia 70826495b8 Merge PR #2752: Don't hardcode bondable denom 2018-11-12 19:54:18 +01:00
Christopher Goes f9c7281124 Linter fix 2018-11-09 16:43:46 +01:00
Christopher Goes d761eb7282 Address remaining comments from #2690 2018-11-09 16:26:08 +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
Jae Kwon c7b3efdd02
Do not allow nil values to be set in CacheKVStore (#2708)
* Do not allow nil values to be set in CacheKVStore
2018-11-07 00:29:27 -08: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
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
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
svaishnavy 9cf53f25f7 Merge PR #2614: Configurable Bech32 prefix for SDK users 2018-10-31 20:13:13 +01: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
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 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
Jae Kwon fa3730a5d2 WIP looking for bug... 2018-10-22 19:48:28 -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 278d23776b call hook on slashing 2018-10-22 14:59:00 -04:00
Jae Kwon 1cc74320df Replicate Rigel's changes but w/ modifications as discussed + some name changes 2018-10-22 01:46:47 -07:00
ValarDragon 1a463eb056 make more clear 2018-10-20 18:02:17 -07:00
ValarDragon 864ca4e982 Merge branch 'dev/change_dec_marshaljson' of github.com:cosmos/cosmos-sdk into dev/change_dec_marshaljson 2018-10-20 13:32:59 -07:00
ValarDragon c2d68928e7 Switch to new Decimal.String() implementation 2018-10-20 13:32:43 -07:00
Dev Ojha 73bfd6c747
Merge branch 'develop' into dev/change_dec_marshaljson 2018-10-20 13:05:27 -07:00
Christopher Goes 7770aec306 Withdraw rewards on bonded to unbonding 2018-10-20 00:13:44 +02:00
Federico Kunze ad355d6c69 Merge PR #2444: Standardize REST error responses 2018-10-19 18:55:20 +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 79ce52a41a
Merge PR #2458: Move linear to store 2018-10-16 21:57:42 +02:00
ValarDragon 20cc13e5bf types: Dec.MarshalJSON now marshals as a normal decimal string
Closes #2475
2018-10-16 09:29:32 -07:00
rigelrozanski 2f4a01bcba address @ValarDragon comments, param store update 2018-10-15 15:51:51 -04:00