Christopher Goes
3630cde63e
Address PR comments
2018-07-07 02:20:37 +02:00
Christopher Goes
dbe7744b14
Simplify test slightly
2018-07-07 02:02:46 +02:00
rigelrozanski
062a683d11
completely fix dem tests
2018-07-06 20:00:33 -04:00
Christopher Goes
eafd1e492f
Update comments
2018-07-07 01:53:40 +02:00
rigelrozanski
37a5f2fd4c
fix count in UpdateBondedValidators to not include revoked validators
2018-07-06 19:53:07 -04:00
Christopher Goes
c456daae25
Merge remote-tracking branch 'origin/develop' into cwgoes/zero-power-should-not-be-bonded
2018-07-07 01:49:46 +02:00
Christopher Goes
ad3e123c82
Ignore slashes on nonexistent validators; update testcases
2018-07-07 01:49:17 +02:00
rigelrozanski
2bf0b842fa
Merge remote-tracking branch 'origin/develop' into rigel/a-validator-on-a-cliff
2018-07-06 18:04:49 -04:00
Christopher Goes
723e057d95
Merge pull request #1566 : Fix validator power decrease bug
...
* Demonstrative testcase
* Update when decreasing but still bonded
* Only update when decreasing, not when equal
* Cleanup conditional; changelog
* Clarify comments
* Simplify conditional
2018-07-06 18:00:00 -04:00
rigelrozanski
926a6160c9
rearrage cliff tests to reveal new problem
2018-07-06 03:04:01 -04:00
Christopher Goes
e8b841080d
Update .Slash() and testcase
2018-07-05 20:21:56 +02:00
Christopher Goes
b92f802835
Demonstrate failing testcase
2018-07-05 20:10:05 +02:00
rigelrozanski
aed3a87366
address cwgoes comments
2018-07-04 17:07:06 -04:00
rigelrozanski
f152b64952
Merge remote-tracking branch 'origin/develop' into rigel/no_keys_in_state_value
2018-07-04 14:29:12 -04:00
rigelrozanski
a2f7b582df
validators smaller values stored
2018-07-04 01:32:49 -04:00
rigelrozanski
04921b9ebd
ubd and red more limited values
2018-07-04 00:29:02 -04:00
rigelrozanski
199c1e81eb
delegations new key format ported
2018-07-03 23:44:54 -04:00
Rigel
cae6b40221
Merge pull request #1467 : staking index keys don't hold values
...
* docs: Explain the expected return type within the store (#1452 )
* bug somewhere here
* ...
* ...
* fix appending over key
* keys cleanup
* changelog
* remove some junk
* address bucky comments - rearrange appends
* hard code address length
2018-07-03 19:15:48 -04:00
Christopher Goes
5c939cfab7
Demonstrative testcase, export GetCliffValidator
2018-07-04 00:08:37 +02:00
rigelrozanski
4f0c7d8746
address bucky comments - rearrange appends
2018-07-03 13:37:17 -04:00
Rigel
2a2f5db450
Merge branch 'develop' into rigel/stake-spec-compliance
2018-07-02 21:03:46 -04:00
rigelrozanski
6f3b4c1805
keys cleanup
2018-07-02 20:58:22 -04:00
rigelrozanski
96f2d2983b
Merge branch 'rigel/stake-spec-compliance' of https://github.com/cosmos/cosmos-sdk into rigel/stake-spec-compliance
2018-07-02 20:08:55 -04:00
Ethan Buchman
aa243565ce
fix appending over key
2018-07-02 20:09:57 -04:00
rigelrozanski
2355e5ae6e
...
2018-07-02 20:05:52 -04:00
rigelrozanski
b3d6a59c61
...
2018-07-02 18:58:52 -04:00
rigelrozanski
ab4661f88b
bug somewhere here
2018-07-02 18:16:47 -04:00
Ethan Buchman
f78f30c67a
update for tm v0.22.0. tmlibs->tendermint/libs
2018-07-02 16:34:06 -04:00
Rigel
f1937bc0e7
Merge branch 'develop' into rigel/stake-spec-compliance
2018-07-02 12:06:20 -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
097dd8a164
tools: Add unparam linter ( #1443 )
...
* tools: Add unparam linter
unparam detects unused parameters in functions, and a parameter to
a function which only ever takes on one value. The latter is an
indication that more tests are required.
There are many nolints in this PR, as I believe that writing tests
to fix alot of these situations is out of scope for this PR / it
will be changed in future commits. There are some nolints for
when we have to comply to normal api's.
* crypto/keys no longer used by x/gov/client/rest/rest.go
2018-06-29 18:22:24 -04:00
Dev Ojha
94a3ce4c83
docs: Explain the expected return type within the store ( #1452 )
2018-06-29 13:45:11 -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
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
3e14868bd6
Merge PR #1429 : tools: Add ineffassign linter
...
* tools: Add ineffassign linter
This errors on assignments that don't actually do anything. i.e.
x, err := myFunc(1)
y, err = myFunc(2)
This will call out that the first function's call error was never
used.
* Fix makefile, add misspell to makefile
2018-06-28 19:12:02 +02: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