Commit Graph

3610 Commits

Author SHA1 Message Date
Christopher Goes 94dc512034 Fix typos 2018-08-20 15:07:23 +02:00
Christopher Goes 79e3c05367 Revert "Changes WIP" - we decided not to do this
This reverts commit 21be609f52.
2018-08-20 15:01:18 +02:00
Christopher Goes 87ca812b0b Correctly read/write governance state 2018-08-20 12:47:04 +02:00
Max Levy 459f126e9b
The URL to abci-spec.md fixed
docs/abci-spec.md -> docs/app-dev/abci-spec.md
2018-08-20 11:29:03 +09:00
Max Levy 8747eaac7d
A URL to abci-spec.md fixed
/docs/abci-spec.md -> /docs/app-dev/abci-spec.md
2018-08-20 11:22:46 +09:00
Ethan Buchman af73b885e7 Merge branch 'develop' into bucky/merge-master 2018-08-19 16:24:45 -04:00
Ethan Buchman d5652d9676
Merge pull request #1991 from cosmos/release/v0.24.0
Release/v0.24.0
2018-08-19 15:51:21 -04:00
Alexander Bezobchuk 5794f3c3ce Merge PR #2083: Fix broken invariant of bonded validator power decrease 2018-08-18 13:41:12 +02:00
Federico Kunze 466e0c04d5 R4R: Update cli docs (#2076)
* Update cli docs, fixes #2026

* Fixed merge conflicts

* Updated chain_id
2018-08-17 18:49:57 +02:00
Alexander Bezobchuk cf03076a0a Merge PR #2047: Fix Invalid Cliff Validator Power Comparison 2018-08-17 17:33:13 +02:00
Christopher Goes b8cfc1e19f
Merge PR #2068: Minor simulation changes 2018-08-17 16:19:33 +02:00
Dev Ojha 8bb79d12ca Fix non-deterministic map iteration in fuzzer (#2069)
* This demonstrates that the state machine is non-deterministic if there
are more than two txs in a block.

* fix non-deterministic map iteration

* (squash this) fix build errors

* (squash this) iterate using range
2018-08-16 23:45:07 +02:00
Max Levy bce09055b2 Merge PR #2058: comment fix
An outdated comment fixed to be less confusing.
2018-08-16 16:56:15 -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
Aditya Sripal c79e130d0f jae comments 2018-08-16 12:07:09 -07:00
Jack Zampolin 45bd414fc2 Run localnet on every commit ensure network reaches at least 10 blocks (#2067) 2018-08-16 20:23:57 +02:00
Christopher Goes 3d50567034
Merge PR #1783: Slashing, validator set, and governance simulation 2018-08-16 17:36:15 +02:00
Zach 7b5ca5adbd duplicate/old CODEOWNERS (#2055) 2018-08-16 13:16:41 +02:00
Zach Ramsay 63367a00c8 docs: add config.js for ToC sidebar 2018-08-15 19:22:23 -04:00
Rigel 422dfa3de9
Merge pr #2051: smol compile bug 2018-08-15 18:35:17 -04:00
Aditya Sripal 599b8ba4cf Fix bug, clearer logic 2018-08-15 13:54:03 -07:00
Alessio Treglia 4fbaee205f Merge pull request #1997: Handle unmarshalling failures gracefully in x/stake commands
* Handle panic gracefully when unbond begin fails

See #1831

* Handle failure to query delegation gracefully.

Closes #1907

* Update PENDING.md

* Reuse stake's error functions

* New ErrBadValidatorAddr error

UnmarshalValidator() checks the address length first;
it does not make sense to attempt unmarshalling if the
address is wrong.

* New ErrBadDelegationAddr error

* Introduce ErrBad{Redelegation,UnbondingDelegation}Addr custom errors to replace errors.New() calls

* Replace ErrBadUnbondingDelegationAddr with ErrBadDelegationAddr to avoid duplication

Thanks: @melekes for pointing this out

* Use sdk.AddrLen instead of hardcoded address length

* s/triple/tuple/ ## mention PR id in PENDING.md
2018-08-15 15:49:06 -04:00
Alexander Bezobchuk a9f240035c
Rename ics-xxx-signed-messages.md to ics-030-signed-messages.md 2018-08-15 15:13:51 -04:00
Alexander Bezobchuk 629c18541d
Update ICS number to 030 2018-08-15 15:12:04 -04:00
Alexander Bezobchuk 97ea51a335 Merge pull request #2023: Terminate Update Bonded Validators Iteration Properly 2018-08-15 14:51:19 -04:00
Federico Kunze c9358ec198 R4R: Fix repeated cmds in CLI for staking (v.0.24.0 release) (#2043)
* Cherry picked commits

* Update CHANGELOG.md
2018-08-15 16:59:46 +02:00
Christopher Goes 8afacac99d Remove extra space 2018-08-15 15:53:41 +02:00
Christopher Goes 38c65f036c Update PR template 2018-08-15 15:51:01 +02:00
Rigel 5fff217e9b Merge PR #2033: staking lcd uses owner address not pubkey address 2018-08-15 15:04:01 +02:00
Christopher Goes 53242681fe Two bullet points 2018-08-15 12:50:07 +02:00
Max Levy a4bcbc972e Merge PR #2036: Update examples to bech32
Using the addresses in Bech32 form
2018-08-15 12:04:16 +02:00
Christopher Goes 5624b1d7e5 Update PRIORITIES.md 2018-08-15 11:57:11 +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
Dev Ojha 4b13529f2d Merge pull request #2029: fix build error 2018-08-14 21:10:57 -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
Aleksandr Bezobchuk f252f3e36c Update Cosmos signed messages ICS doc
- Address PR comments
- Fix markdown lint errors
2018-08-14 13:36:51 -04:00
Christopher Goes 21be609f52 Changes WIP 2018-08-14 19:04:57 +02:00
Christopher Goes a2463d038b Clarify points from PR review 2018-08-14 18:04:32 +02:00
Christopher Goes 32263ffe4d Merge branch 'develop' into cwgoes/slashing-period-spec 2018-08-14 17:56:46 +02:00
Christopher Goes 52475b1684 Fix minor typos 2018-08-14 11:31:39 +02:00
Avi Saranga 0adbd60dfa Merge PR #1989: Openbsd support 2018-08-14 10:39:27 +02:00
Dev Ojha 9997ea2243 Merge PR #2016: dep: Fix error with scratch directory
If dep already sees its scratch directory (.vendor-new), dep ensure fails. This rm -rf's that directory so make get_vendor_deps doesn't fail.
2018-08-14 10:35:08 +02:00
Matthew Slipper 8fa2c3b4ea Merge PR #1984: Replace _ with - in command names
Closes #1955
2018-08-14 10:23:42 +02:00
Jack Zampolin 1ae546610c
Merge pull request #2013 from cosmos/dev/fix_non_determinism_storekey
Rename transient store key to be a unique key.
2018-08-13 19:08:59 -07:00
ValarDragon 165fdf4a07 (squash this) Add PR ref in changelog 2018-08-13 18:26:16 -07:00
ValarDragon 0d41026a0a Rename transient store key to be a unique key.
This caused an error with non-determinism between nodes with same
gaiad version and genesis.
2018-08-13 15:13:37 -07:00
Federico Kunze 63713c9378 Merge pull request #2000: tests for staking lcd
* Added tests for Delegator Validators routes

* Updated tests for undelegations

* Updated Gaia-lite docs

* Updated PENDING.md

* Updated comments

* Deleted more comments

* Add spacing
2018-08-13 18:06:48 -04:00
Jack Zampolin c9cbb0b094 Merge PR #2010: Add RELEASE_TEST_SCRIPT.md 2018-08-13 21:41:07 +02:00
Dev Ojha 1854430e7b makefile: Improve error message when LEDGER_ENABLED=True & no gcc (#2008)
Closes #2005
2018-08-13 20:42:38 +02:00
Juan Leni 61b49d560f Merge PR #2003: Update upstream Ledger Go client 2018-08-13 18:16:41 +02:00