Commit Graph

3396 Commits

Author SHA1 Message Date
rigelrozanski 90e1c9fdb1 Merge branch 'rigel/piggy-bank-fee-spec' of https://github.com/cosmos/cosmos-sdk into rigel/piggy-bank-fee-spec 2018-08-16 16:41:57 -04:00
rigelrozanski 3c564c01b9 clearer names, missing commission logic 2018-08-16 16:41:32 -04:00
Rigel 54cc27fde9
Merge branch 'develop' into rigel/piggy-bank-fee-spec 2018-08-15 23:54:44 -04:00
rigelrozanski 8fc9b95929 pending 2018-08-15 23:49:07 -04:00
rigelrozanski 5ef0f5d70e finalize txs 2018-08-15 23:33:26 -04:00
rigelrozanski 31d5348c4a txs pretty much ready 2018-08-15 20:03:39 -04:00
Rigel 422dfa3de9
Merge pr #2051: smol compile bug 2018-08-15 18:35:17 -04: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 97ea51a335 Merge pull request #2023: Terminate Update Bonded Validators Iteration Properly 2018-08-15 14:51:19 -04: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
rigelrozanski 37ed3b1a6e agasg 2018-08-15 04:12:44 -04:00
rigelrozanski 360eb75c8e working 2018-08-14 23:33:40 -04: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
rigelrozanski 5e5fad4548 txs 2018-08-14 13:45:13 -04: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
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
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 36b54e190f Merge PR #2003: Update upstream Ledger Go client 2018-08-13 18:15:54 +02:00
Juan Leni 1a64c8747c Merge PR #1995: upgrading ledger goclient lib 2018-08-13 13:21:05 +02:00
Zach f18c01d291 Merge PR #1994: Delete install.md 2018-08-13 13:15:01 +02:00
Greg Szabo 68c9214721 DataDog log gathering (#1931)
* Added datadog service log gathering

* Updated PENDING.md

* monitoring script fixes so logs don't fill the disk space
2018-08-12 03:38:53 -04:00
gamarin2 c5fcc9b65f Add SDK_By_Examples to doc (#1795)
* Add simple gov example and sdk-by-example folder

* Add simple gov example

* Add simple gov example and sdk-by-example folder

* Add simple gov example

* fix sectino title

* Jb feedback + Offload some of the content in other docs

* Add what is cosmos back

* platform to framewoork

* Reemove testnet
2018-08-12 03:37:26 -04:00
Dev Ojha b2a4aecc44 Upgrade to tm version 23.0. (#1927)
* Start upgrade. Currently go test ./... hangs.

* (squash this) Fix staking tests

* wip

* note what changes need to be made to make this work on tm v0.23.0

* Fix addr -> pubkey map

* cleanup code

* Fix slashing test failures except for begin blocker

* fix all slashing tests

* fix lcd tests

* Address PR comments

* add link to changelog.

* (wip) start making addrToPubkey map persisted. Since amino can't handle maps,
we have to change from what this commit is doing.

* Use the correct method of storing a map

* (squash this) address PR comments

* Did you run 'make'?

* remove gaiadebug binary
2018-08-12 03:33:48 -04:00
Ethan Buchman 691048c88a
Merge pull request #1917 from gamarin2/update_val_faq
Update validator faq
2018-08-12 03:32:59 -04:00
Ethan Buchman 243fa20558
Merge pull request #1985 from cosmos/cwgoes/stage
Merge master into develop on staging branch
2018-08-12 01:56:34 -04:00
Jae Kwon a9800a92ae Fix slashing test to reflect SlashFractionDowntime param 2018-08-12 01:08:35 -04:00
Jae Kwon 77d02e348e fixed proposaltype string bug (#1829)
* fixed proposaltype string bug
2018-08-12 01:05:08 -04:00
Zach 69dd371df3 networks: clean up & some fixes to prepare for docs (#1986)
* networks: update ports

* networks: organize some files, convert rst to md

* networks: rm old readme

* networks: more little fixes
2018-08-11 17:10:54 -04:00
Christopher Goes 8f05d052f2 Merge branch 'master' into cwgoes/stage 2018-08-11 15:04:28 +02:00
Fabian 1479a35e5e Merge PR #1949: Fixed delegations endpoint 2018-08-10 15:41:01 +02:00
Alessio Treglia 831435ccc0 Merge PR #1948: enable indexing of all tags by default 2018-08-10 15:40:21 +02:00
rigelrozanski e7ebe35b0a updating transactions 2018-08-09 00:34:19 -04:00
rigelrozanski 5285489977 general updates 2018-08-08 23:43:40 -04:00
Christopher Goes ac26d33547
Merge PR #1858: Fix Cliff Validator Update Bugs 2018-08-09 00:57:59 +02:00
Jae Kwon 0600d7356d
Update PRIORITIES.md 2018-08-08 13:06:01 -07:00
Jae Kwon bd65dbe2df
Update PRIORITIES.md 2018-08-08 12:59:21 -07:00
Jae Kwon 9342e34da2
Update PRIORITIES.md 2018-08-08 12:58:27 -07:00
Jae Kwon b333d56b36
Update PRIORITIES.md 2018-08-08 12:55:23 -07:00
Jae Kwon 950f151e02
Update PRIORITIES.md 2018-08-08 12:49:02 -07:00
rigelrozanski a0e05a8f03 triggers, endblock, transactions 2018-08-08 15:03:43 -04:00
rigelrozanski 2d613cefe7 move lamborghini distribution to subfolder 2018-08-08 14:24:38 -04:00
rigelrozanski eb6f51ed45 piggy bank state 2018-08-08 13:28:30 -04:00
rigelrozanski 97397e63da simple distribution overview 2018-08-08 13:09:51 -04:00
Ethan Buchman e6dc01ec27
Bucky/docs (#1843)
* docs: updates for 7002

* docs: use master instead of versions

* Update validator-setup.md

* 7002 -> 7005
2018-08-08 12:26:31 -04:00
Dev Ojha 7ba479e57a Merge PR #1942: Gblue1223/basecoin fix 2018-08-08 17:32:33 +02:00