Commit Graph

4963 Commits

Author SHA1 Message Date
Christopher Goes 7d55bd1a36
Merge PR #3063: Fix linter 2018-12-10 16:13:26 +01:00
Alessio Treglia b4528d2a5d Update PENDING.md 2018-12-10 14:39:25 +00:00
Alessio Treglia 2e05d4e3d7 drop extra else block, outdent its block, and make linter happy 2018-12-10 14:36:20 +00:00
Alessio Treglia 24a1670cf0 Run make format 2018-12-10 14:27:25 +00:00
Alessio Treglia ac0a7c0a1d Move generate_only and simulate to POST body in REST txs
Closes: #3056
2018-12-10 14:26:34 +00:00
Sunny Aggarwal 945803d586 Governance Quorum (#3053) 2018-12-10 02:50:20 -08:00
Jae Kwon 133134ca52
Use address instead of bond height / intratxcounter for deduplication (#3055) 2018-12-10 02:49:37 -08:00
Jae Kwon 40a30b738f
Update gas costs to more reasonable numbers for GoS (#3052) 2018-12-10 02:48:19 -08:00
Jae Kwon 663e954b80 Default SimulationPeriod is 1 2018-12-08 07:44:18 -08:00
Jae Kwon e02e55116c multi_seed sim should run 400, or at least 100 2018-12-08 07:31:27 -08:00
Jae Kwon bc51fa93b6
Fix updateValidatorDistInfoFromPool (#3046)
Fixes regression introduced by #2984.
Continuiation of #3033 , which didn't fix the simulation issues.
(candidate) Complete solution for #3019, 9002 halt bug.

From #2984, it isn't sufficient to take the fee pool rewards of a validator. Since we don't track delegator accums (as we do with validator accums), and because onValidatorModified >updateValidatorDistInfoFromPool is also being called upon delegation updates (or at least I believe this is the reason), it is necessary to also withdraw self delegation.

TODO: I don't think self-delegation should be required to be modified here... consider using a delegation hook to do the self-delegation withdraw part instead, e.g. splitting the updateValidatorDistInfoFromPool function into two. It might not result in cleaner code, however. Think hard.
2018-12-08 07:18:04 -08:00
Jack Zampolin be98f77aee Add pending 2018-12-07 18:02:18 -08:00
Jack Zampolin b558e50eb2 Fix quoted json return 2018-12-07 17:33:52 -08:00
Jae Kwon 1ba93ea1c1 Merge PR #3033: Fix negative stake & invariance bug
* Fix negative stake & invariance bug

* Merge PR #3037: Updates to negative stake fix

* Update invariant; fix lint

* Fix linter

* Add comment & TODO
2018-12-08 01:04:52 +01:00
Jae Kwon 2473b74d86
Jae/gaiareplay3 (#3032)
gaiareplay tool
2018-12-07 03:19:49 -08:00
frog power 4000 49da96bc09 Merge PR #3010: Add Missing genesis checks in Gaia 2018-12-07 01:22:24 +01:00
Alexander Bezobchuk f11a65dee7 Merge PR #3005: Move auth keeper benchmarks to sep. file 2018-12-06 10:49:30 +01:00
Jack Zampolin a3d5e493c9 Merge PR #3014: Update to 0.27 final of Tendermint 2018-12-06 10:46:50 +01:00
Alexander Bezobchuk 5b42e83bc2 Merge PR #2995: Fully verify the signature in `gaiacli tx sign`
* Implement auxiliary methods/functions for just building a tx sig bytes

* Undo auxiliary methods/functions

* Validate signature

* Remove redundant comment

* Add pending log entry

* Minor cleanup

* Update sign cli doc

* Update cli sign offline flag doc

* Update printAndValidateSigs

* Implement TestGaiaCLIValidateSignatures

* Minor cleanup

* Fix linting

* Update x/auth/client/cli/sign.go

Co-Authored-By: alexanderbez <alexanderbez@users.noreply.github.com>

* Minor reformatting
2018-12-06 02:02:04 -05:00
Jack Zampolin cfab1ad6ee
Add Account Decoder to the LCD (#3013) 2018-12-05 16:48:30 -08:00
Christopher Goes ba5e87ca6f x/auth module spec / code reconciliation (#2964) 2018-12-05 16:48:08 -08:00
Alessio Treglia 816248987f CollectStdTxs() must check DelegatorAddr against accounts (#3004)
* CollectStdTxs() must check DelegatorAddr against accounts
* Use sdk.AccAdress.String() instead of casting with string()
2018-12-05 13:23:19 -08:00
Alexander Bezobchuk 6395e2a7ab Merge PR #2984: Removal of Mandatory Self-Delegation Reward
* Some minor cleanup and reformatting to make things easier to understand

* Update onDelegationSharesModified hook

* Add pending log

* Address PR comments

* Fix linting
2018-12-04 17:53:52 -05:00
Christopher Goes dfd00a661a Inflation bug fixes (#2982)
* PENDING.md; swap BeginBlocker ordering
* Calculate inflation every block
* Update x/mint spec
* Reset distribution info bond height instead
2018-12-04 10:17:02 -08:00
Alexander Bezobchuk bcfd93f544 Merge PR #2950: AnteHandler Cleanup
* Add and use CodeInvalidAccountNumber in ante handler

* Minor cleanup of ante handler

* Add pending log entry

* Spell check and more minor comment restructuring

* Add additional CodeInvalidAccountNumber

* Update validateAccNumAndSequence

* Revert account number error in favor of CodeInternal

* Update pending log

* Fix pending log
2018-12-04 17:42:15 +01:00
Jack Zampolin 07b0ad3c9e Merge PR #2987: Add shorthand flag to address output on gaiacli keys show and update docs
* Add shorthand flag to address output on gaiacli keys show

* Update docs and add PENDING

* Update client/keys/show.go

Co-Authored-By: jackzampolin <jack.zampolin@gmail.com>

* pk -> p
2018-12-04 17:38:43 +01:00
Alessio Treglia 079b1f0ffa Merge PR #2994: Change wrong password message
* change wrong password message

Closes: #2993

* Update PENDING.md
2018-12-04 17:23:10 +01:00
Alessio Treglia d32e4a9fe0 Merge PR #2972: Fix gaiacli config and make it non-interactive only
* Fix gaiacli config and make it non-interactive only

Closes: #2734

* Update cli tests

* Remove --list, by default and with no args print config

* Small improvements

* Warn user when file doesn't exist

* Fix integration tests
2018-12-04 14:17:45 +01:00
Jack Zampolin d8fbae677f R4R: Additional gentx verfication (#2971)
* Add check that account is in genesis and contains enough funds to gentx command

* Fix CLI tests and make them parallel

* Update makefile to take advantage of parallel tests

* Add path seperator back in

* Don
't check error on key delete

* Add debuggin printout for debugging remote test failures

* Update cmd/gaia/init/gentx.go

Co-Authored-By: jackzampolin <jack.zampolin@gmail.com>

* Update cmd/gaia/init/gentx.go

Co-Authored-By: jackzampolin <jack.zampolin@gmail.com>

* Change to bondDenom from the stake section in genesis

* Add PENDING.md

* Push changes

* Fix CI failure

* Address PR comments

* Fix broken gov tests

* Address PR comments

* Address PR comments
2018-12-04 10:57:44 +01:00
Jack Zampolin 886bd35670
Address gov cli ux issues and add additional input validation for better errors (#2938)
* Fix governance cli ux issues and add additional transaction validation
2018-12-03 12:48:51 -08:00
Dev Ojha 13e78166ee Merge PR #2977: Don't serialize Account Number and Sequence Number in signatures
* Don't serialize Account Number and Sequence Number in signatures

This was not needed to be included within the tx body, as its in the
state.

* fix lint
2018-12-03 18:29:50 +01:00
Zach fedecd5436 docs: add tutorial to sidebar (#2865)
* add tutorial
2018-12-03 08:23:49 -08:00
Alessio Treglia 16e8bfc365 Merge PR #2974: Cleanup home dirs when cli testcases exit with success
* Cleanup dirs when testcases exit with success

Also remove unnecessary tests.WaitForNextNBlocksTM() calls
which slow down tests execution.

* Don't wait for 2 blocks
2018-12-03 11:49:44 +01:00
gamarin2 5c5ea48623 Improve testnet docs (#2928)
* improve testnet docs
2018-12-01 09:54:59 -08:00
Alessio Treglia bedc900d49 Run cli test in parallel (#2969) 2018-11-30 15:11:52 -08:00
Alessio Treglia 535822ca68 R4R: add command asks for encryption password once too many (#2970)
* add command asks for encryption password once too many

* keep additional explanatory text
2018-11-30 15:00:53 -08:00
Alessio Treglia 956c2229bf Merge PR #2965: add --force to keys delete for unattended execution
* add --force to keys delete for unattended execution

Skip password check when --force is on and delete
keys unconditionally.

Closes: #2961

* Forcibly cleanup keys on fixtures initialization
2018-11-30 21:36:55 +01:00
mircea-c a55f4490f9 changed docs deployment to trigger on every push to master/develop (#2962)
* changed docs deployment to trigger on every push to master/develop

* updated PENDING.md
2018-11-30 07:15:04 -08:00
Ethan Buchman b5ccbc9f07 Merge PR #2956: gaiadebug: fix addr fmt to print bech32 and hex 2018-11-30 15:39:18 +01:00
Juan Leni 0473621570 Merge PR #2870: Upgrading ledger-cosmos-go dependency
* Upgrading dependencies
* Update dependency
2018-11-30 15:23:55 +01:00
Christopher Goes 98caf44e35
Merge PR #2853: Write bank module specification, check spec/code consistency
* Update PENDING.md

* New structure

* Start transactions section

* Remove MsgIssue

* Update keepers.md

* Add state.md

* Update keepers.md, discovered #2887

* Move inputOutputCoins to BaseKeeper

* Remove no-loner-applicable tests

* More spec updates

* Tiny cleanup

* Clarify storage rationale

* Warn the user

* Remove extra newline
2018-11-29 22:56:42 +01:00
Christopher Goes da83b2525e
Merge PR #2934: Release 0.27.0 back to develop 2018-11-29 22:41:03 +01:00
Alessio Treglia c3965f5509 Remove inconsistent gaiacli keys new/add dualism (#2904)
* Remove inconsistent gaiacli keys new/add dualism
2018-11-29 12:59:41 -08:00
Alessio Treglia a6bc60e4c6 Merge PR #2923: Prompt user for confirmation when deleting ledger and offline keys
* Force password to 'yes' when deleting ledger-offline keys
* Improve UX, better docs on removing offline/ledger keys
* Ask for confirmation on offline/ledger keys deletion
2018-11-29 21:55:23 +01:00
Jack Zampolin ddab04e55f
R4R: Update single node network bootstrapping documentation (#2931)
* Update single node network bootstrapping documentation to reflect changes to gentx
* Update docs/gaia/networks.md
* Address PR comments
2018-11-29 12:39:09 -08:00
Hendrik Hofstadt b7736367a8 R4R: Fix duplicate json key in SetWithdrawAddress (#2944)
* Fix duplicate json key

* Update PENDING.md
2018-11-29 09:54:36 -08:00
Jack Zampolin 6258fded71
Update IAVL to 0.12.0 (#2951) 2018-11-29 09:33:14 -08:00
Hendrik Hofstadt db77117a5b Only allow supported pubKey types (#2949)
* Only allow supported pubKey types
* Add type and supported types to error message
* Add default value for ConsensusParams
2018-11-29 09:21:45 -08:00
Christopher Goes b2b026b5e0
Merge PR #2930: Simulation spring cleaning
* Update PENDING.md
* Add simple period for expensive invariants
* Remove individual module simulations
* Simulate a few more blocks
* Add README explaining reason for shell scripts
* Deduplicate scripts, log exact replication command on failure
* Refactor invariants to take sdk.Context instead of baseapp.BaseApp
* Reference all issues in PENDING.md entry
* Remove no longer used simulation.RandSetup
* Bug fixes
* Address @rigelrozanski comments
* Fix typo
2018-11-29 16:17:10 +01:00
Christopher Goes 5d700a597c
Merge PR #2947: Update to Tendermint 0.27.0-dev1 2018-11-29 16:02:19 +01:00