Commit Graph

3517 Commits

Author SHA1 Message Date
youjing 517682f17c fix Iterator leak, ref to https://github.com/cosmos/cosmos-sdk/issues/2105 2018-08-21 14:54:12 +08:00
Max Levy bb473e98fb
Merge pull request #1 from maxim-levy/patch-5
The URL to abci-spec.md fixed
2018-08-21 14:29:00 +09:00
Jae Kwon f076794c5a Fix bug introduced during merge 2018-08-20 21:55:23 -07:00
Alexander Bezobchuk 9dd8e28104
Remove cosmosSignBytesPassword 2018-08-20 15:15:25 -04:00
Christopher Goes f18895532d Clarify which offenses utilize the slashing period 2018-08-20 18:37:16 +02:00
Christopher Goes c9e5745cd7 Clarify example 2018-08-20 18:34:03 +02:00
Christopher Goes d0c87ff5bc Go => pseudocode 2018-08-20 18:31:55 +02:00
Christopher Goes da92b1bb1d h_n => h_n-1 2018-08-20 18:28:40 +02:00
Christopher Goes 800ac2844e validator.Operator, sdk.Dec 2018-08-20 17:10:43 +02:00
Christopher Goes 98a5844310 Makefile phony; Gopkg.lock 2018-08-20 17:06:18 +02:00
Christopher Goes b8d6465613 Conceptual overview & ASCII diagrams of slashing period 2018-08-20 16:58:24 +02:00
Christopher Goes e3cb1e1274 Add safety note 2018-08-20 15:13:17 +02:00
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
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
Rigel 5fff217e9b Merge PR #2033: staking lcd uses owner address not pubkey address 2018-08-15 15:04:01 +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
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