Jae Kwon
bc51fa93b6
Fix updateValidatorDistInfoFromPool ( #3046 )
...
Fixes regression introduced by #2984 .
Continuiation of #3033 , which didn't fix the simulation issues.
(candidate) Complete solution for #3019 , 9002 halt bug.
From #2984 , it isn't sufficient to take the fee pool rewards of a validator. Since we don't track delegator accums (as we do with validator accums), and because onValidatorModified >updateValidatorDistInfoFromPool is also being called upon delegation updates (or at least I believe this is the reason), it is necessary to also withdraw self delegation.
TODO: I don't think self-delegation should be required to be modified here... consider using a delegation hook to do the self-delegation withdraw part instead, e.g. splitting the updateValidatorDistInfoFromPool function into two. It might not result in cleaner code, however. Think hard.
2018-12-08 07:18:04 -08:00
Jae Kwon
1ba93ea1c1
Merge PR #3033 : Fix negative stake & invariance bug
...
* Fix negative stake & invariance bug
* Merge PR #3037 : Updates to negative stake fix
* Update invariant; fix lint
* Fix linter
* Add comment & TODO
2018-12-08 01:04:52 +01:00
Hendrik Hofstadt
db77117a5b
Only allow supported pubKey types ( #2949 )
...
* Only allow supported pubKey types
* Add type and supported types to error message
* Add default value for ConsensusParams
2018-11-29 09:21:45 -08: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
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
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
mossid
9d809d7855
Merge branch 'develop' into joon/2406-move-linear
2018-10-16 03:18:04 +09: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
06fa518e30
address @cwgoes comments, add in precommit calculation
2018-10-12 07:15:13 -04:00
rigelrozanski
f3c0496c99
TestWithdrawDelegationRewardsAll
2018-10-12 04:11:09 -04:00
rigelrozanski
3b5e57be08
ctx with proposer, working through allocation test
2018-10-10 17:43:47 -04:00
mossid
03975407ba
Merge branch 'develop' into joon/paramstore-refactor-base
2018-10-10 21:20:59 +09:00
mossid
0c92477b4d
mv types/lib/* store/
2018-10-09 22:23:22 +09:00
rigelrozanski
600532575b
Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution
2018-10-08 20:15:17 -04:00
Sunny Aggarwal
cd21427a7b
Merge PR #2405 : Unbonding and Redelegations Queue
2018-10-08 06:43:47 +02:00
Dev Ojha
869d85fba5
Merge PR #2453 : Update to tm version v0.25.0
2018-10-08 06:08:20 +02:00
mossid
7a68b376bd
apply requests in progress
2018-10-07 01:12:01 +09:00
Aleksandr Bezobchuk
2aad1bd1b0
Minor doc and formatting updates
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
45f0dd0e3b
Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution
2018-10-04 18:33:12 -04:00
rigelrozanski
1e74da1abe
validator_info tests
2018-10-04 03:00:24 -04:00
Christopher Goes
17983460b8
Merge PR #2219 : Update to Tendermint 0.24 (except NextValSet offsets)
2018-10-03 17:48:23 +02:00
rigelrozanski
0436f50c00
...
2018-09-27 19:54:41 -04:00
Alexander Bezobchuk
8ca8acf638
Merge PR #2357 : Refactor Iterator Gas Consumption
2018-09-26 22:02:56 +08:00
Dev Ojha
9e27e4bac5
Merge PR #2386 : types/coins: Add benchmarks for coins addition
2018-09-26 21:15:37 +08:00
Dev Ojha
e11c52e873
Merge PR #2408 : decimal: Add a method to multiply a decimal by an Int
...
This is for usage within the slash function, to minimize operations
required to slash each unbonded and redelegating account.
2018-09-26 18:13:40 +08:00
Rigel
b54801b4b3
[RETRY] Distr-PR-3 More staking hooks ( #2404 )
...
* update commission hook for new commission work
* comment update
2018-09-25 23:11:57 -07:00
rigelrozanski
3846894c3a
Merge branch 'rigel/new-hooks' into rigel/fee-distribution
2018-09-25 20:09:33 -04:00
rigelrozanski
9e9756a6a9
Merge remote-tracking branch 'origin/develop' into rigel/new-hooks
2018-09-25 18:31:12 -04:00
rigelrozanski
910af2066f
Merge commit '5be5ea3' into rigel/new-hooks
2018-09-25 18:26:24 -04:00
rigelrozanski
d3146bf06d
...
2018-09-25 18:02:22 -04:00
rigelrozanski
380d3e1c5a
pull a bunch from develop
2018-09-25 17:43:26 -04:00
Matthew Slipper
2fb3493ff5
Merge PR #2223 : Gaia CLI Config Command
...
* Allow a gaia-cli config file to be created
Closes #1613 .
Closes #1275 .
Closes #1956 .
* Add homedir to Gopkg.toml
* Updates from code review
* Post-rebase fixes
* Update test
* Code review refactor
* Fixes from code review
* Fix import
* Fix broken test
* Fixes from rebase
* Fix formatting
2018-09-25 17:36:42 -04:00
Matthew Slipper
24413a395d
Merge PR #2073 : Allow --from to be a name or an address
...
* Allow --from to be a name or an address
Closes #1735 .
* Post-rebase fixes
* Updates from code review
* Updates from code review
* Updates from code review
* Fix merge artifacts
* Fix merge conflicts
* Fix integration tests
* Add back GetFromName() check broken during merge
* Code review updates
* Fix failing test
* Updates from code review
2018-09-25 16:48:38 -04:00
Alexander Bezobchuk
611e287375
Merge PR #2401 : Remove remnants of gocyclo
2018-09-25 13:45:04 -04:00
Rigel
de30281afa
Distr-PR-2 Truncate Decimal Functionality ( #2379 )
2018-09-24 21:18:18 -07:00
Rigel
6b595842ed
Distr-PR-1 Staking ConsPubKey -> ConsAddr index ( #2369 )
...
* pulling in stuff from fee-distr PR
* revert some gov changes
* fix using cons address, also remove old commented distr code
* doc update
* val comments
* remove GetValidatorByConsPubKey
2018-09-24 21:09:31 -07:00
rigelrozanski
5be5ea3b4c
comment update
2018-09-24 23:07:55 -04:00
rigelrozanski
f5116b9d57
Merge branch 'rigel/truncate-decimal' into rigel/new-hooks
2018-09-24 22:52:12 -04:00
rigelrozanski
ff8d7486a2
Merge branch 'rigel/stake-cons-addr' into rigel/truncate-decimal
2018-09-24 22:51:14 -04:00
rigelrozanski
16594f7daf
Merge remote-tracking branch 'origin/develop' into rigel/stake-cons-addr
2018-09-24 21:54:30 -04:00
rigelrozanski
afe179ebb3
remove GetValidatorByConsPubKey
2018-09-24 21:51:24 -04:00
Alexander Bezobchuk
9dafa3252d
Merge PR #2365 : Validator Commission Model
...
* Update validator commission fields
* Remove CommissionChangeToday and update to use CommissionChangeTime
* Implement commission as a first class citizen type
* Implement stringer for Comission
* Move commission type and logic to new file
* Add new commission errors
* Add commission to create validator message
* Implement and call UpdateValidatorCommission
* Update godoc for UpdateValidatorCommission
* Add Abs to the decimal type
* Implement new SetValidatorCommission
* Update decimal short godocs
* Move set initial commission logic
* Move initial commission validation to Commission type
* Update initial validator commission logic and unit tests
* Remove commission update time from struct and move to validator
* Update validator create handler tests
* Implement commission logic for CLI
* Fix make lint failure
* Fix make cover failure
* Update edit validator logic to handle new commission rate
* Fix lint and cover
* Update create/edit validator simulation to include commission params
* Update MsgEditValidator godoc
* Update pending log
* Update staking tx docs
* Fix CLI create validator test
* Update variables names for commission strings
* Merge UpdateTime into Commission type
* Update create-validator usage in docs
* Update more docs with examples
* More doc updates
2018-09-24 18:23:58 -04:00
rigelrozanski
6f35822d7d
import hook from fee-distr
2018-09-22 16:29:42 -04:00
rigelrozanski
d428317f91
import decimal from fee-distr PR
2018-09-22 13:56:48 -04:00
rigelrozanski
9e2b8e413d
revert some gov changes
2018-09-20 21:22:28 -04:00
rigelrozanski
0f903bdd52
finished pulling in, compiles
2018-09-20 21:17:50 -04:00
rigelrozanski
0d9105cf7c
...
2018-09-20 20:10:26 -04:00
rigelrozanski
d36030424e
breakout use of GetValidatorByConsAddr
2018-09-20 15:36:32 -04:00
rigelrozanski
5dabd1bf6d
the errors never want to seem to end...
2018-09-19 22:54:46 -04:00
rigelrozanski
18fdccf95b
...
2018-09-19 22:13:12 -04:00
rigelrozanski
d9396ed732
working compile errors
2018-09-19 19:33:12 -04:00
rigelrozanski
97f7dbc5e6
Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution
2018-09-19 13:25:23 -04:00
Alessio Treglia
b74a6a9066
Merge PR #2328 : Support min fees-based anti spam strategy
2018-09-19 23:25:52 +08:00
rigelrozanski
24e43b9869
hookwork
2018-09-18 12:46:04 -04:00
rigelrozanski
431fdb8695
hook, genesis, and withdraw address
2018-09-17 23:02:15 -04:00
rigelrozanski
2eff69a575
Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution
2018-09-17 17:53:42 -04:00
Dev Ojha
65137f6331
Merge PR #2343 : Add a name field to the message type
...
This is to facillitate ease of implementing #1406 . (Tags for messages
could then be added dynamically)
Ultimately once we make the router support hiearchical routing, (#770 )
we can then remove the name field and just the parse info for tags from that.
Until then, we can parse the tag name as
`fmt.Sprintf("%s %s", msg.Type(), msg.Name())`
2018-09-17 22:34:06 +08:00
Dev Ojha
6b55093c75
Merge PR #2324 : rename wire to codec
...
* rename wire to codec
* fix formatting and cli
* fix the docs
2018-09-13 14:17:32 -04:00
rigelrozanski
7d864fee11
Merge remote-tracking branch 'origin/develop' into rigel/fee-distribution
2018-09-10 18:42:26 -04:00
rigelrozanski
e498d43d03
dec coins, refactoring distr
2018-09-10 18:37:58 -04:00
Alexander Bezobchuk
0edfa17b53
Merge PR #2251 : Refactor Bech32 Prefixes and Nomenclature of Validator Pubkey and Operator
2018-09-08 16:44:58 +08:00
rigelrozanski
545c3c300e
Merge remote-tracking branch 'origin/develop' into rigel/minor
2018-09-07 00:50:08 -04:00
rigelrozanski
51d3a39b39
move types/account -> address
2018-09-05 18:47:21 -04:00
Jeremiah Andrews
2378e3431c
Fix linter errors
2018-09-03 07:58:57 -07:00
LLLeon
efb3b95476
types: fixed the error returned from AccAddress unmarshal
2018-09-01 19:14:17 +08:00
Christopher Goes
1204857694
Merge PR #2122 : Implement slashing period
...
* Update PENDING.md
* SlashingPeriod struct
* Seperate keys.go, constant prefixes
* Make linter happy
* Update Gopkg.lock
* Seek slashing period by infraction height
* Slashing period hooks
* Slashing period unit tests; bugfix
* Add simple hook tests
* Add sdk.ValidatorHooks interface
* No-op hooks
* Real hooks
* Fix iteration direction & duplicate key, update Gaia
* Correctly simulate past validator set signatures
* Tiny rename
* Update dep; 'make format'
* Add quick slashing period functionality test
* Additional unit tests
* Use current validators when selected
* Panic in the right place
* Address @rigelrozanski comments
* Fix linter errors
* Address @melekes suggestion
* Rename hook
* Update for new bech32 types
* 'make format'
2018-08-31 20:01:23 -04:00
Rigel
b92ac313ac
Merg PR #2198 : Ensure Legacy Validator Delegation Invariants
...
* Test and allow jailed validator to self-bond
* Implement TestJailedValidatorDelegations
* Restructure TestJailedValidatorDelegations
* Add Delegation to Validator type and update handleMsgUnjail accordingly
* Update ErrMissingSelfDelegation error message
* Update democoin mock validator set impl
* Update pending log
* Add comment to ValidatorSet
* Fix conflicts/errors due to develop merge
2018-08-31 15:21:12 -04:00
Rigel
ee0434e5a7
Revert "Merge PR #2176 : Ensure Legacy Validator Delegation Invariants" ( #2197 )
...
This reverts commit df33452490
.
2018-08-31 00:55:33 -04:00
Alexander Bezobchuk
df33452490
Merge PR #2176 : Ensure Legacy Validator Delegation Invariants
...
* Test and allow jailed validator to self-bond
* Implement TestJailedValidatorDelegations
* Restructure TestJailedValidatorDelegations
* Add Delegation to Validator type and update handleMsgUnjail accordingly
* Update ErrMissingSelfDelegation error message
* Update democoin mock validator set impl
* Update pending log
* Add comment to ValidatorSet
2018-08-31 00:10:51 -04:00
Alexander Bezobchuk
2d92803b9f
Merge PR #2040 : Refactor Validator Account Types/Bech32 Prefixing
...
* Add new account bech32 prefixes with godocs
* Restructure spacing of existing account code
* Update account godocs
* More account godoc updates + new tm pub/addr helpers
* Update validator type to use new account types/bech32 prefixes
* Fix account documentation errors
* Update Bech32 prefix for consensus nodes
* Update Bech32 spec doc
* Fix account type tests
* Add missing account consensus functions, clear up godocs, and fix tests
* Add to TestRandBech32PubkeyConsistency check
* Update initialization of validator public keys
* Update query signing info command
* Implement new ConsAddress type with associated unit tests
* [WIP] Update stake and slashing parameters
* Update all calls to MustBech32ifyValPub
* [WIP] Validator operator API updates
* [WIP] Fix and update unit tests
* Fix gov logs (helping to debug failing tests)
* Fix gov tally
* Fix all broken x/ unit tests
* Update gaia app genesis address logic
* Fix linting errors
* Fix broken LCD tests
* Fix broken CLI tests
* Implement command to get validator address and pubkey from key name
* Add support for getting validator key information via REST endpoint
* Update PENDING log
* Update docs
* Revert GaiaGenTx.PubKey bech32 prefix
* Fix broken docs and cli tests
* Update genesis to use correct Bech32 (cons) prefix for pubkeys
* Update docs and unit tests to reflect new cosmos account bech32 prefix
* minor formatting
2018-08-31 00:06:44 -04:00
Alessio Treglia
76a16ab288
Modify AnteHandler to take a simulate boolean parameter
2018-08-25 20:12:14 +01:00
Federico Kunze
f143c92ca6
Addressed Chris and Dev's comments
2018-08-23 12:02:12 +02:00
Federico Kunze
1ec9d16d94
Merge branch 'develop' of https://github.com/cosmos/cosmos-sdk into fedekunze/2044-JSON-err-msgs
...
Merge develop
2018-08-23 11:31:37 +02:00
Christopher Goes
879f78cfc0
Rename revoke(d) to jail(ed)
2018-08-22 17:56:13 +02:00
Federico Kunze
11ee255f11
Delete unnecesary line
2018-08-22 16:16:56 +02:00
Federico Kunze
092a178c12
Parsed Error msgs and added tests
2018-08-22 16:15:45 +02:00
Sunny Aggarwal
5ae20d2d51
address Chris's comments
2018-08-22 00:15:18 -07:00
Sunny Aggarwal
97f7b88a9f
addressed Jae's comments
2018-08-22 00:15:18 -07:00
Sunny Aggarwal
1311117658
added to gov rest
2018-08-22 00:12:44 -07:00
Sunny Aggarwal
804baa70f4
added querier to gov module
2018-08-22 00:12:44 -07:00
Sunny Aggarwal
1d1a95656a
custom queriables
2018-08-22 00:11:23 -07:00
Ethan Buchman
af73b885e7
Merge branch 'develop' into bucky/merge-master
2018-08-19 16:24:45 -04:00
Alessio Treglia
187bc1972a
Merge PR #1950 : Validator.Owner -> .Operator
...
* Rename --address-validator flag to --validator
See #1901
* Update PENDING.md
* Rename Validator.Owner -> Validator.Operator
See #1901
2018-08-16 16:47:59 -04:00
Christopher Goes
3d50567034
Merge PR #1783 : Slashing, validator set, and governance simulation
2018-08-16 17:36:15 +02:00
Dev Ojha
d37de06762
decimal: Remove unnecessary allocation in bankers round chop ( #2030 )
...
This is done by making the function mutative. A non-mutative variant
is created for functions that depend on it being non-mutative.
2018-08-14 21:49:40 -04:00
Rigel
d9dc061b4f
Merge pull request #1819 : rational -> decimal
...
* changelog
* ...
* decimal func working
* decimal complete, untested
* fixing tests
* decimal compile errors resolved
* test compile errors
* precision multiplier test
* 1% laptop battery
* fixed TestNewDecFromStr
* equalities working
* fix bankers round chop
* ...
* working, some decimal issues resolved
* fix rounding error
* rounding works
* decimal works
* ...
* deleted rational
* rational conversion working
* revert changelog
* code compiles (not tests)
* went through all NewDec, made sure they were converted from NewRat properly
* test debugging
* all testing bugs besides the json marshalling fixed
* json unmarshal
* lint
* document update
* fix lcd test
* cli test fix
* mostly undo Dece -> Rate
* val comments
* Efficiency improvements
This now caches all of the precision multipliers (as they were all
used in non-mutative functions), and caches the precisionInt calculation.
(Now it just copies the already calculated value)
* Cache another precisionInt() call.
* Improve banker rounding efficiency
* remove defer, make negation in-place.
* chris val comments
* bez comments
* Aditya comments
* ...
* val comments
* rebasing start
* ...
* compiling
* tests pass
* cli fix
* anton, cwgoes, val comments
* val and jae comments
* type
* undo reuse quo
2018-08-14 20:15:02 -04:00
Dev Ojha
10199c9159
Merge PR #1936 : types: Reduce size of TestImmutability<Arith\U>Int tests
...
Currently they take ~1 minute on circle CI. There isn't a significant reason
for this to delay all our tests. This commit reduces the time spent on these
tests by a factor of 20.
2018-08-08 12:05:20 +02:00
Christopher Goes
46382994a3
Merge PR #1925 : Fix develop from FF merge
...
* Update types/coin_test.go from FF merge
* 'make format'
2018-08-06 21:49:17 +02:00
Joon
93457aac33
Merge PR #1626 : Increase coverage of types/
2018-08-06 21:00:49 +02:00
Joon
19b0781e60
Merge PR #1811 : NewCoin takes sdk.Int
2018-07-31 02:09:50 +02:00
Joon
d46140a392
Merge PR #1481 : Transient Stores
2018-07-27 03:24:18 +02:00
Dev Ojha
5d02a743fb
Update to tendermint v0.22.6-rc0 ( #1798 )
...
* Update to tendermint v0.22.6-rc0
This is comprised of updating the crypto imports / API
* (squash this) switch to v0.22.6
If this passes tests, I'll squash this commit and update the PR.
2018-07-25 16:43:37 -04:00
Christopher Goes
4b7f6efd87
Merge PR #1805 : Downtime slashing off-by-one-block fix
...
* Avoid slashing & revoking no longer stored or already revoked validators for downtime
* Add testcase
* Update PENDING.md
2018-07-25 04:12:48 +02:00
rigelrozanski
423d0c4a18
Merge remote-tracking branch 'origin/develop' into cwgoes/a-random-walk-down-proof-of-stake
2018-07-19 01:56:42 -04:00
Christopher Goes
cbf432d34c
Merge PR #1746 : Remove ctx.IsCheckTx
...
* Remove ctx.IsCheckTx
* Changelog to Pending
* Typo
* Simulate instead of Check in SignCheckDeliver
* Add descriptive comment
* Change to 'CheckTx implements ABCI'
* Alphabetize changelog
2018-07-19 02:42:19 +02:00
Christopher Goes
cea2be6107
Fix loose tokens invariant
2018-07-18 09:42:18 +02:00
Christopher Goes
a6dd96db4d
Merge branch 'develop' into cwgoes/a-random-walk-down-proof-of-stake
2018-07-17 02:23:10 +02:00
Dev Ojha
4b688992ba
Merge pull request #1691 : Table driven test indexes
...
* types: Switch table driven test error messages to new format
Make table driven tests in /types follow the format described in #1664
* typos / lower case errors
* lower case, not sentences
* lower case, not sentences
2018-07-16 14:42:28 -04:00
Christopher Goes
405bb538fc
Merge branch 'master' into cwgoes/a-random-walk-down-proof-of-stake
2018-07-14 02:09:41 +02:00
Rigel
3231daa4d8
remove global shares ( #1644 )
...
* wip removing pool shares
* remove PoolShares/Tokens entirely
* worked through stake/type compile error
* work through a bunch of keeper errors
* worked through compile errors
* debugging tests
* resolve compilation error
* resolved types errors
* ...
* move inflation to pool type
* ...
* stumped problem
* Calculate newly issued shares, remove unnecessary pool arg from exchange rate calculation
* Rounding changed
* Update x/slashing tests for sdk.Rat BondedTokens
* testing fixes
* resolved test fixes
* cwgoes comments, changelog, lint
* cli bugfixes
* ..
* cli fixed
* spec update
* 'make format'
* cwgoes comments
* Increase test_cover parallelism
2018-07-13 21:46:14 +01:00
Jeremiah Andrews
43b9cc6df0
Merge PR #1533 : Pruning Cleanup
2018-07-13 03:20:26 +02:00
Alexander Bezobchuk
5983a07fb6
Merge PR #1599 : Implementation of TraceKVStore
2018-07-13 01:58:51 +02:00
Ethan Buchman
c6827dfb43
fix post merge
2018-07-10 21:40:24 -04:00
Christopher Goes
940cfa98af
Invariants & random Msgs in progress
2018-07-11 02:36:50 +02:00
Ethan Buchman
3f44589861
Merge branch 'develop'
2018-07-10 20:31:05 -04:00
Christopher Goes
5a56c3f03d
Merge PR #1575 : ready-for-review: sdk.AccAddress natively bech32
2018-07-10 04:18:23 +02:00
ValarDragon
17b5370c22
Continue fixing gocyclo errors
2018-07-09 16:08:35 -07:00
Sunny Aggarwal
896cd333f0
address comments
2018-07-09 16:06:05 -07:00
ValarDragon
0c5358c267
Continue reducing code complexity:
...
* Adds a Min function to Int, and uses that in the slash function
* Adds a getHeight helper function to iavlstore
* Adds a splitPath function to baseapp
* Changes cyclo param from 10 to 11
2018-07-09 15:29:16 -07:00
sunnya97
7ac220beb6
asdf
2018-07-09 00:59:51 -07:00
Sunny Aggarwal
50ed0fa1ae
asdf
2018-07-09 00:35:28 -07:00
sunnya97
e894fbe4b6
in progress
2018-07-09 00:30:37 -07:00
ValarDragon
611e4faa3a
gaiad: Genesis txs now use bech32 encoding of address and pubkey
...
* `gaiad init gen-tx` makes the outputted file use bech32, with acct prefix
* `gaiad init --gen-txs` only reads bech32 with acct prefixes
The reason for using the account prefix is that in principle you could
have genesis transactions for non-validators.
Closes #1475
2018-07-07 14:23:19 -07:00
Liamsi
b7f902fba5
sort *all* GetSignBytes:
...
- call MustSortJSON before return JSON bytes to guarantee alphabetic
ordering
- moved SortJSON and MustSortJSON to types package to avoid cyclic
package dep
2018-07-06 01:12:57 +01:00
rigelrozanski
aed3a87366
address cwgoes comments
2018-07-04 17:07:06 -04:00
Yukai Tu
f1194019cd
Merge PR #1534 : Check new rat decimal string length
2018-07-04 05:29:05 +02:00
Ethan Buchman
a6dc81defa
minor cleanup of feeKeeper
2018-07-03 00:08:00 -04:00
Ethan Buchman
673086f621
Merge branch 'develop' into davekaj/set-fee-collection-keeper
2018-07-02 20:43:33 -04:00
Ethan Buchman
f78f30c67a
update for tm v0.22.0. tmlibs->tendermint/libs
2018-07-02 16:34:06 -04:00
Dev Ojha
6a864923fa
types: Rename rational.Evaluate to rational.Round ( #1487 )
...
* rational.Evaluate -> rational.RoundInt64
* rational.EvaluateInt -> rational.RoundInt
This done to improve clarity of the code.
Closes #1485
2018-07-02 11:57:33 -04:00
Christopher Goes
3654579ea7
Merge PR #1278 : Slashing v2
...
Implement semifinal Gaia slashing spec (#1263 ), less #1348 , #1378 , and #1440 which are TBD.
2018-06-30 05:34:55 +02:00
Dev Ojha
955a0c9af7
Switch asserts to require ( #1483 )
...
* meta: Switch the majority of asserts to require
Switch most assert statements to require, to ease debugging.
Closes #1418
* Fix imports
2018-06-30 03:10:15 +02:00
Dev Ojha
47e4682d9f
Merge PR #1415 : x/stake: Limit the size of rationals from user input
...
* x/stake: Limit the size of rationals from user input
This commit sets the maximum number of decimal points that can be
passed in from messages. This is enforced on the validate basic of
MsgBeginUnbonding and MsgBeginRedelegation. The cli has been
updated to truncate the user input to the specified precision. This
also updates types/rational to return big ints for Num() and Den().
Closes #887
* Switch NewFromDecimal to error instead of truncating
2018-06-29 22:30:12 +02:00
David Kajpust
0a76035398
fee collection now works in gaia
2018-06-29 09:37:14 -04:00
Ethan Buchman
a88b6b9c97
Merge pull request #1376 from cosmos/bucky/docs-core
...
docs via example apps
2018-06-29 02:07:06 -04:00
Christopher Goes
59aadf42aa
Ledger integration ( #931 )
...
Merges the keybase and Ledger code from go-crypto (which is no more) into the SDK
Adds support for Ledger into gaiacli
Cherry-picks updated error handling from #1158
2018-06-29 02:54:47 +02:00
Ethan Buchman
e8946e9b36
fixes from review
2018-06-28 19:06:37 -04:00
Dev Ojha
ac3adff1e8
Merge PR #1438 : Tools: Add errcheck linter
...
This linter ensures that all errors are checked.
This is disabled in the client directories, since its not needed on
those writes
2018-06-29 00:52:10 +02:00
Dev Ojha
2755c66545
Merge PR #1424 : tools: add unconvert linter
...
unconvert checks for unnecessary type conversions
2018-06-28 18:08:29 +02:00
Dev Ojha
3dc2387124
Merge PR #1404 : Add more context for errors when no address is provided
2018-06-27 19:39:57 +02:00
Ethan Buchman
b3b075cc12
finish docs for app1
2018-06-27 07:15:30 -04:00
Rigel
6f140d7296
Merge PR #1119 : Unbonding, Redelegation
...
* stake/fees spec updates
* staking overview.md revisions, moving files
* docs reorganization
* staking spec state revisions
* transaction stake updates
* complete staking spec update
* WIP adding unbonding/redelegation commands
* added msg types for unbonding, redelegation
* stake sub-package reorg
* working stake reorg
* modify lcd tests to not use hardcoded json strings
* add description update
* index keys
* key managment for unbonding redelegation complete
* update stake errors
* completed handleMsgCompleteUnbonding fn
* updated to use begin/complete unbonding/redelegation
* fix token shares bug
* develop docs into unbonding
* got non-tests compiling after merge develop
* working fixing tests
* PrivlegedKeeper -> PrivilegedKeeper
* tests compile
* fix some tests
* fixing tests
* remove PrivilegedKeeper
* get unbonding bug
* only rpc sig verification failed tests now
* move percent unbonding/redelegation to the CLI and out of handler logic
* remove min unbonding height
* add lcd txs
* add pool sanity checks, fix a buncha tests
* fix ante. set lcd log to debug (#1322 )
* redelegation tests, adding query functionality for bonds
* add self-delegations at genesis ref #1165
* PR comments (mostly) addressed
* cleanup, added Query LCD functionality
* test cleanup/fixes
* fix governance test
* SlashValidatorSet -> ValidatorSet
* changelog
* stake lcd fix
* x/auth: fix chainID in ante
* fix lcd test
* fix lint, update lint make command for spelling
* lowercase error string
* don't expose coinkeeper in staking
* remove a few duplicate lines in changelog
* chain_id in stake lcd tests
* added transient redelegation
* 'transient' => 'transitive'
* Re-add nolint instruction
* Fix tiny linter error
2018-06-27 04:00:12 +02:00
Dev Ojha
d6df6b07d1
Merge PR #1388 : types/int: Switch Int, Uint to use pointers internally
...
* types/int: Switch Int, Uint to use pointers internally
This reduces the amount of pointer refs & derefs.
* Fix nil pointers on unmarshalling amino
* Fix elusive bug in marshalling with unitialized big int
* Remove debug code
* Switch big.rat to use pointers internally
2018-06-27 03:10:34 +02:00
7768
4f57a765ad
Merge PR 1354: CLI: Show fractional in human-readable format
...
Fix https://github.com/cosmos/cosmos-sdk/issues/1353
before:
```
Shares: Status Bonded, Amount: -6508168128760126341/-3308135364330552608
Delegator Shares: -6508168128760126341/-3308135364330552608
```
after:
```
Shares: Status Bonded, Amount: 2.0000000000
Delegator Shares: 2.0000000000
```
2018-06-26 19:26:12 +02:00
Dev Ojha
9f30a90980
Merge PR #1374 : types/rat: Fix overflowing in printing
...
This now uses the underlying golang big.rat's string function,
instead of casting to num and den which are int64s.
Closes #1258
2018-06-26 05:03:55 +02:00
Dev Ojha
893bb4027d
Merge PR #1377 : types: remove GetMemo from Tx
...
This method is an unneccessary requirement on Tx. Auth casts the Tx
to StdTx, so the memo can be obtained in previous usecases from
StdTx. This also makes it more clear for when something is
implementing StdTx vs Tx.
Resolves #1375
2018-06-26 04:37:21 +02:00
Jae Kwon
7487f67346
Use new tmlibs/common.Error for sdk.Error
2018-06-25 16:44:09 -04:00
Dev Ojha
2e97baabf6
Merge PR #1358 : Fix typos and gofmt files
...
* Fix typos
* gofmt -s files
* Add mispellings and gofmt checks to circle CI
* circleci: Install misspell in the linting step
2018-06-25 20:23:17 +02:00
Joon
ec6acda6a4
Merge PR #1331 : Remove TxBytes from NewContext
2018-06-22 03:03:05 +02:00
Sunny Aggarwal
dc2c8f900b
Merge PR #1168 : Governance MVP
2018-06-22 02:19:14 +02:00
Aditya
f049a56376
Merge PR #1266 : Multiple messages
...
* Started work on multiple msgs, types and x/auth tests pass
* Fix issues in x, examples, and baseapp
* Added baseapp tests for multiple msgs
* Documentation fixes
* Fix baseapp tests with sdk.Int
* Modify test
* Transaction handling is now atomic
* Fix test comment
* Minor doc fixes and code cleanup
* Added baseapp result changes
* Use address in validator update accumulation
* Started work on multiple msgs, types and x/auth tests pass
* Fix issues in x, examples, and baseapp
* Added baseapp tests for multiple msgs
* Documentation fixes
* Fix baseapp tests with sdk.Int
* Modify test
* Transaction handling is now atomic
* Fix test comment
* Minor doc fixes and code cleanup
* Added baseapp result changes
* Use address in validator update accumulation
* Added ante tests for multisigner
* Remove validatorUpdates from tx result
* Better error logs
* Put Memo in StdSignBytes and formatting
* Updated changelog
2018-06-22 00:05:25 +02:00
Joon
3fa68249eb
Merge PR #1254 : Add prefixstore and lib refactor
...
* Merge pull request #1254 : add prefixstore and lib refactor
add prefixstore
refactor lib
fix test
fix linter
in progress
in progress
add test for prefixstore
add KVStoreGetter, PrefixStoreGetter
move PrefixStoreGetter to types/
add tests
KVStore.Prefix(string) -> KVStore.Prefix([]byte)
fix mock
apply requests
pass lint, add test
apply requests
* Remove unnecessarily 'valid' boolean
2018-06-21 23:33:36 +02:00
Christopher Goes
918e217e1f
Merge PR #1280 : Implement simple transaction memos
...
* AltBytes -> Memo, memo CLI support & thread-through
* Check memo size, update changelog
* Update existing testcases
* Nuke CircleCI caches
* Charge gas proportional to memo size
* Fix gas allocations in ante handler testcases
* Add testcases
* Update changelog
* Fix tiny CLI bug & add to CLI tests
* Add '--memo' to gaiacli
* Add testcase for large memos
* Address PR comments
2018-06-20 21:27:36 +02:00
Ethan Buchman
c4a70f683c
Merge branch 'aditya/guide' into develop
2018-06-16 17:46:59 -07:00
Ethan Buchman
a77ac582a3
note on iterators
2018-06-16 17:45:48 -07:00
Joon
314b5a854d
Merge PR #1218 : sdk.Int in sdk.Coin
...
implement Int, Int256, Uint256
pass ci
pass ci
add to changelog, add boundcheck to test
add comments, fix cli_test.go
fix errors
apply requested changes
panics on New*WithDecimal
fix Int.BigInt()
fix stake tests
* Panic on uint division-by-zero
* Set ok=false on NewIntFromString, NewUintFromString failure
* Nuke CircleCI caches
2018-06-15 23:16:45 +02:00
Aditya Sripal
eb5113af55
Added documentation to guide
2018-06-14 19:18:48 -07:00
David Kajpust
ec2fedd36c
Merge PR #1227 : Set all Error strings 1st letters to lowercase. Fixes issue #1154
2018-06-13 21:13:22 +02:00
Fabian
8ece807301
Merge PR #1085 : Re-enable tx history in LCD
...
* reenable tx search
* removed not needed argument
* register types for decoding
* trying to fix indexing tests
* added tx hash query test
* Fix x/bank tagging
* remove dead code
* remove print
* extended tests for tx querying
* changelog
* added txs address querying
* linted
* rename
* use prefix for bech32 addresses in tags
* changed error message
* Fix tiny linter issue
2018-06-11 22:09:29 +02:00
Christopher Goes
496d4681c2
Add MsgUnrevoke.GetSignBytes() testcase, remove unused functions
2018-06-08 02:05:34 +02:00
Christopher Goes
a6c0db71e5
Bech32ify GetSignBytes() for x/bank
2018-06-08 00:32:14 +02:00
Christopher Goes
7baed6d361
Add MustUnBech32() functions
2018-06-07 21:36:03 +02:00
Christopher Goes
3fbee11ccc
Merge PR #1142 : Export validators to genesis
...
* Validator export skeleton
* Update export command, add tests, update CHANGELOG
* Rename exportAppState to exportAppStateAndTMValidators
2018-06-06 18:38:13 +02:00
Fabian
5f409ce832
Merge PR #1086 : Bech32Cosmos output/input for the LCD
...
* refactored bech32ization
* updated keys endpoints for bech32
* bech32 for sending and querying
* trying to change output of validator addresses
* fixed validator output
* linted
* fixed merge conflict
* added bech32 to staking endpoints
* removed some logging statements
* added GetAccPubKeyBech32Cosmos
* fixed cli tests
* updated swagger
* merged standard bech32 change
* renamed bech32cosmos to bech32
* bech32ify json output for key add
* readded changelog
* fixed changelog merge issue
* Update CHANGELOG.md
2018-06-06 06:53:04 +02:00
Christopher Goes
be7ec5bc07
Merge PR #1115 : Update SDK to ABCI v11
2018-06-05 01:42:01 +02:00
Zaki Manian
ce850dca3b
Switch from bech32cosmos to bech32
2018-06-01 16:23:58 +02:00
Rigel
0fb2bbdfef
Merge pull request #1011 from cosmos/cwgoes/slashing
...
Implement slashing (v1)
2018-05-31 11:09:44 -07:00
Christopher Goes
5f03e370c3
Remove ValidatorByPubKey, don't marshal sdk.Address
2018-05-31 00:19:23 +02:00
Rigel
1c462013a9
Merge branch 'develop' into matt/stake-rest
2018-05-30 10:53:12 -04:00
Christopher Goes
91f14e1b48
Merge branch 'develop' into cwgoes/slashing
2018-05-29 21:39:45 +02:00
Ethan Buchman
f946b630a4
fixes from review
2018-05-28 22:20:30 -04:00
Christopher Goes
aed5d94b1c
Remove absent validators from sdk.NewContext
2018-05-29 02:26:17 +02:00
Christopher Goes
e4b0d0a618
Reorganization in progress
2018-05-28 21:55:54 +02:00
Christopher Goes
366d8f9323
Slash() and ForceUnbond() are functions of ValidatorSet, not Validator
2018-05-28 21:55:52 +02:00
Christopher Goes
b005f9f18d
Validator by pubkey, tests work-in-progress
2018-05-28 21:55:52 +02:00
Christopher Goes
95c5baf449
Rebase & squash slashing
2018-05-28 21:55:27 +02:00
Zaki Manian
4fd998c669
Merge branch 'develop' into bech32cosmos
2018-05-27 19:14:15 +02:00
Zaki Manian
a163a3558f
Use public keys consistently for validators and all addresses are for accounts
2018-05-27 14:21:15 +02:00
Zaki Manian
f33f49a840
Almost from scratch reimplementation of bech32cosmos integration.
2018-05-27 13:47:23 +02:00
Matt Bell
5c1a7694e5
Merge branch 'develop' into matt/stake-rest
2018-05-27 16:02:33 +09:00
sunnya97
caf8c77dce
works
2018-05-26 18:00:39 -07:00
Matt Bell
efd1a3ac44
Typo fix
2018-05-25 09:32:12 +09:00
sunnya97
5d7c3af1b8
works
2018-05-23 22:09:01 -07:00
sunnya97
cb52712660
in progress
2018-05-23 19:49:35 -07:00
rigelrozanski
e70249b631
more bucky comments, single status validator, only one store now for core validator object
2018-05-20 17:39:04 -04:00
rigelrozanski
26be2a231b
working addressed bucky comments
2018-05-18 18:57:47 -04:00
rigelrozanski
037d810417
some cwgoes comments, getAllDelegations, getAllValidators
2018-05-17 14:09:35 -04:00
rigelrozanski
e145676fcc
revert absent validator changes
2018-05-17 10:47:25 -04:00
rigelrozanski
1ab432a7e1
many bug fixes, introduce PoolShare type
2018-05-17 09:19:33 -04:00
rigelrozanski
0c98cc6895
working fixing validator tests
2018-05-17 09:19:05 -04:00
rigelrozanski
c69c145964
fix stake app tests
2018-05-17 09:19:05 -04:00
rigelrozanski
eb87a5dbbf
introduce UpdateSharesLocation to deal with different share types
2018-05-17 09:19:05 -04:00
rigelrozanski
675dc5df15
staking refactor compiling
2018-05-17 09:19:05 -04:00
rigelrozanski
6d0c788185
working refactoring
2018-05-17 09:17:40 -04:00
rigelrozanski
fa64487e65
working fee distribution reorg
2018-05-17 09:17:40 -04:00
mossid
22e9fc276d
GetDelegated -> GetBondAmount
2018-05-17 09:17:40 -04:00
mossid
2e9e2835ff
add delegation
2018-05-17 09:17:40 -04:00
mossid
79fdbe2f3a
add ValidatorSet, remove methods
2018-05-17 09:17:40 -04:00
rigelrozanski
ed5d088824
renaming and refactoring for fees
2018-05-17 09:17:14 -04:00
rigelrozanski
750cbc53ec
stake cleanup, functionality for total prevote power
2018-05-17 09:17:14 -04:00
rigelrozanski
aeabdcae5d
add absent validators to context
2018-05-17 09:15:57 -04:00
rigelrozanski
d871605241
staking fee distribution working commit
2018-05-17 09:15:06 -04:00
mossid
02a267c292
remove cdc from validator_set.go
2018-05-17 09:15:06 -04:00
mossid
755f79d52d
GetValidators -> Validators, sdk.Validator=abci.Validator
2018-05-17 09:15:06 -04:00
mossid
60869ff427
implement TotalPower
2018-05-17 09:15:06 -04:00
mossid
9d7e893226
rebase on develop
2018-05-17 09:15:06 -04:00
Ethan Buchman
4bdcad572b
remove gasLimit from NewContext
2018-05-15 22:19:09 -04:00
Christopher Goes
3d5b048444
Remove txGasLimit, update tests
2018-05-16 02:31:52 +02:00
Christopher Goes
d55ba2ca7d
Add p2p filter functions & tests
2018-05-16 01:15:07 +02:00
Christopher Goes
147cf9f897
Move GasKVStore to /store
2018-05-16 01:14:30 +02:00
Christopher Goes
1c4ed7b833
Gas-wrap ctx.KVStore
2018-05-16 01:13:48 +02:00
Christopher Goes
1f8ef62d28
Swap to panic/recover version
2018-05-16 01:13:48 +02:00
Christopher Goes
af379b6cf6
Linter fixes
2018-05-16 01:13:48 +02:00
Christopher Goes
ddb3b36b7b
Pass gas consumed back in result struct
2018-05-16 01:13:47 +02:00
Christopher Goes
efc7843fb9
Changes to bank keeper for gas
2018-05-16 01:13:47 +02:00
Christopher Goes
26991803ee
GasMeter & context updates
2018-05-16 01:13:47 +02:00
Christopher Goes
46f9445f06
Add gas limit / gas consumed to context
2018-05-16 01:13:47 +02:00
Rigel
64f445ed22
Merge pull request #985 from LLLeon/master
...
modify bad syntax for struct tag value
2018-05-14 10:29:11 -04:00
LLLeon
5da41a6c88
types: modify bad syntax for struct tag value
2018-05-13 17:34:56 +08:00
Christopher Goes
2b707f6b0a
AppendTags a function of Tags
2018-05-10 17:37:12 +02:00
Christopher Goes
60b56f9b1c
Slight tags API changes (Jae comments)
2018-05-10 17:36:55 +02:00
Christopher Goes
f103cd412d
Linter fix
2018-05-10 17:36:55 +02:00
Christopher Goes
bef7e44f6d
Example tag implementation for CoinKeeper
2018-05-10 17:36:55 +02:00
rigelrozanski
677559bf6c
cwgoes comments
2018-05-09 18:24:51 -04:00
rigelrozanski
d44c7afa30
add range queries, add candidates query
2018-05-08 15:57:12 -04:00
rigelrozanski
dd9b5e78f7
cleanup stake marshalJson -> marshalBinary
2018-05-01 16:41:04 -04:00
Jae Kwon
cb2491bbb8
Use GoAmino 0.9.9 and change impl of Rational.MarshalAmino
2018-05-01 11:31:56 -07:00
Christopher Goes
2376f231c2
Rebase, update changelog & testcase
2018-05-01 14:00:23 +02:00
Christopher Goes
36e096d4bb
Update testcase after rebase
2018-05-01 13:52:49 +02:00
Christopher Goes
db3a82fc97
Update changelog, add simple testcase
2018-05-01 13:52:49 +02:00
Christopher Goes
ad6c7f0be4
Remove MemLogger, update baseapp
2018-05-01 13:52:49 +02:00
Christopher Goes
c7cd21955a
Add MemLogger
2018-05-01 13:52:49 +02:00
Christopher Goes
62fc3e2c49
Context-accessible logger field
2018-05-01 13:52:49 +02:00
Rigel
a674d75016
Merge pull request #895 from cosmos/sunny/remove-msg-get
...
Remove Get function from Msg interface
2018-04-30 22:12:19 -04:00
Christopher Goes
a6589949fb
Remove unnecessary code
2018-05-01 00:19:28 +02:00
Sunny Aggarwal
9f4f35a6db
removed Get from account
2018-05-01 00:15:27 +02:00
Sunny Aggarwal
af0e71fa0d
got rid of Get on Msg interface
2018-05-01 00:15:15 +02:00
rigelrozanski
4a834ae9c5
rational cleanup
2018-04-30 17:39:13 -04:00
rigelrozanski
ce32117399
rational embedes bigRat
2018-04-30 17:21:14 -04:00
rigelrozanski
318e924145
refactor
2018-04-27 20:36:11 -04:00
rigelrozanski
10ddd7a3d3
refactor export function, working
2018-04-27 20:06:50 -04:00
Christopher Goes
ad77affb53
Add IterateAccounts & account export
2018-04-27 20:04:29 -04:00
Christopher Goes
ff66629b68
Example WriteGenesis implementation
2018-04-27 20:00:58 -04:00
rigelrozanski
260ab69e4f
cleanup, move simplestaking to democoin
2018-04-26 22:59:30 -04:00
mossid
06d47bebed
add comments for golint
2018-04-25 14:45:22 +02:00
mossid
8ff316c99e
merge from develop
2018-04-25 14:15:34 +02:00
mossid
87edaa80d4
add comments, clarify Iterate()
2018-04-25 13:44:29 +02:00
mossid
88a11ec0bb
apply requests
2018-04-20 23:25:43 +02:00
mossid
91767fc6d3
add GenericMapper
2018-04-19 21:07:56 +02:00
mossid
e00d03aabd
in progress
2018-04-19 21:07:56 +02:00
mossid
1b72a6c40d
apply requests
2018-04-19 21:07:56 +02:00
mossid
373e408fad
expose QueueInfo
2018-04-19 21:07:56 +02:00
mossid
fbfdbd4266
stdlib -> lib
2018-04-19 21:07:56 +02:00
mossid
2c10c868f4
prefixed storekey
2018-04-19 21:07:56 +02:00
mossid
cc07dce8f2
mock store
2018-04-19 21:07:56 +02:00
mossid
36c6f72690
add comment & write test for Iterate()s
2018-04-19 21:07:56 +02:00
rigelrozanski
5c78c382f9
stdlib linting
2018-04-19 13:04:40 -04:00
rigelrozanski
d28efaac27
many renames / golint compliance
2018-04-19 00:49:24 -04:00
rigelrozanski
c63a545206
stake handler tests
2018-04-18 12:19:35 -04:00