Commit Graph

2802 Commits

Author SHA1 Message Date
Ethan Buchman fe7a5a01bd update iavl to remove tmlibs dep 2018-07-02 17:22:25 -04:00
Ethan Buchman 498aed433e update changelog 2018-07-02 16:48:56 -04:00
Ethan Buchman 64d5e3fa47 dev version 2018-07-02 16:48:56 -04:00
Ethan Buchman f78f30c67a update for tm v0.22.0. tmlibs->tendermint/libs 2018-07-02 16:34:06 -04:00
Ethan Buchman 0845d8126e server: remove broken start test 2018-07-02 14:47:58 -04:00
Ethan Buchman dbabc2e79f update tendermint to fix stopping WAL 2018-07-02 14:47:58 -04:00
Ethan Buchman 544454c3bd version 2018-07-02 14:47:58 -04:00
Ethan Buchman 7a14982901 some changelog updates 2018-07-02 14:47:58 -04:00
Ethan Buchman fa293f3a3e update dep for tm v0.22.0 2018-07-02 14:47:58 -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
Ethan Buchman feb3acdbe9 Merge PR #1491: client/lcd: fix tests
* client/lcd: fix tests
* circle: drop test_unit. store artifacts in test_cover
* hack fix in TestUnrevoke
2018-07-01 01:32:52 +02: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
Rigel 2f508f5b28 Merge PR #1422: Add Contributing Guidelines
* Merge pull request #1422: Add Contributing Guidelines
* cwgoes comments
2018-06-30 04:04:29 +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 fc3dd56281 Merge PR #1477: gaiacli: Make recovery allow new keys
* gaiacli: Make recovery allow new keys
* Move create key to a temporary method, restore create fundraiser key
2018-06-30 00:47:09 +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 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
Dev Ojha 0d28eda146 Merge PR #1463: docs: Fix dependencies, from monorepo merge
Closes #1456
2018-06-29 22:02:45 +02:00
Dev Ojha 24a68d3bdf Merge PR #1451: crypto/keys: move checksum size into constants
Closes #1410
2018-06-29 09:52:32 +02:00
Dev Ojha b66a5cc853 Merge PR #1455: tools: Add make format
This adds a command to automatically fix gofmt and misspell errors.
2018-06-29 09:37:16 +02:00
Dev Ojha 337e87b228 Merge PR #1449: crypto/keys: make bcrypt security param a var
This is done so that the time spent on bcrypt during test cases
can be reduced. This change reduces the amount of time lcd tests
spend on bcrypt from 76% to 40%. (We need to reduce the number of
calls to bcrypt in a seperate PR, along with fixing other sources
of slowness)

Making the bcrypt security parameter a var shouldn't be a security issue:
One can't verify an invalid key by maliciously changing the bcrypt
parameter during a runtime vulnerability. The main security
threat this then exposes would be something that changes this during
runtime before the user creates their key. This vulnerability must
succeed to update this to that same value before every subsequent call
to gaiacli keys in future startups / or the attacker must get access
to the filesystem. However, with this same threat model (changing
variables in runtime), one can cause the user to sign a different tx
than what they see, which is a significantly cheaper attack then breaking
a bcrypt hash. (Recall that the nonce still exists to break rainbow
tables)
2018-06-29 09:22:06 +02:00
Dev Ojha b4e70e356e Merge PR #1453: Fix build error on develop 2018-06-29 09:06:49 +02: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
Ethan Buchman a7cdea5931 minor fix 2018-06-29 02:03:59 -04:00
Ethan Buchman 4e87cdf444 add links for modules and clients 2018-06-29 01:59:52 -04:00
Ethan Buchman 822ebdb501 cleanup _attic 2018-06-29 01:53:43 -04:00
Ethan Buchman 12a180786a started app5 2018-06-29 01:31:06 -04:00
Ethan Buchman f405bdf761 template app4.md. simplify app4.go 2018-06-29 00:41:44 -04:00
Ethan Buchman 1d4d9e922f simplify and complete app3 2018-06-28 23:42:04 -04:00
Yanqing Yang c333050b59 Repair link of QuickStart->Documentation which was broken by #1289 (#1444) 2018-06-29 03:14:06 +02: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 d1a42e0691 satisfy linter 2018-06-28 20:23:09 -04:00
Ethan Buchman d0efeb1020 fill in app3 todos. simplify app3.go 2018-06-28 20:17:50 -04:00
Ethan Buchman 778b102a52 more app1/app2 cleanup 2018-06-28 20:08:38 -04:00
Ethan Buchman e7081040d0 address TODOs in app 1 and 2 2018-06-28 19:41:40 -04: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
Ethan Buchman 7f59aa259f
Merge pull request #1371 from cosmos/bucky/gaiadebug-bech32
gaiadebug: support bech32
2018-06-28 16:09:50 -04:00
Ethan Buchman 3a96f8ffd1
Merge pull request #1434 from cosmos/bucky-aditya/docs-core
Bucky aditya/docs core
2018-06-28 15:35:15 -04:00
Rigel b07a4654ff
Merge branch 'develop' into bucky/gaiadebug-bech32 2018-06-28 15:25:32 -04:00
David Kajpust 090aaf8137 Merge #1412: Add async flag and functionality to gaiacli send
* added async functionality to gaiacli
* addressed requested changes, updated changelog
2018-06-28 21:23:47 +02:00
Aditya Sripal 4e2eb240f3 Appease linter 2018-06-28 15:08:39 -04:00
Aditya Sripal e3f38b6f6c Added some documentation 2018-06-28 15:08:34 -04:00
Aditya Sripal 98be0e7f76 Improved apps with better handling/routing and simpler MsgIssue 2018-06-28 15:08:30 -04:00
Christopher Goes 6037243250
Merge branch 'develop' into bucky/gaiadebug-bech32 2018-06-28 19:16:44 +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
Dev Ojha 2755c66545 Merge PR #1424: tools: add unconvert linter
unconvert checks for unnecessary type conversions
2018-06-28 18:08:29 +02:00
Rigel 473ac4a38e Merge PR #1423: PR Template labels 2018-06-28 03:22:57 +02:00
Rigel 2f3e1a3fde
Merge branch 'develop' into bucky/gaiadebug-bech32 2018-06-27 20:41:42 -04:00
Dev Ojha 6d9f07dfee tools: Add go vet as a linter (#1421)
* tools: add go vet

* tools: Add go vet as a linter
2018-06-27 20:32:06 -04:00