Alessio Treglia
469b8eff6b
R4R: Update genesis docs ( #2833 )
...
* Extend validator-setup.md
2018-11-26 12:21:09 -05:00
Jae Kwon
7ec2b9a72b
Fix merge conflict issues from previous squash commit
2018-11-26 04:27:23 -08:00
Christopher Goes
ad121f1498
Add a flag to export for zero-height start ( #2827 )
...
Closes #2812
This PR adds the flag --for-zero-height to gaiad export, which runs several alterations to the application state to prepare for restarting a new chain in a consistent fashion.
It also:
* Moves Gaia's export code to cmd/gaia/app/export.go for cleaner separation.
* Fixes an inconsistency where we treated the initChainer as happening at height -1 - it should now happen at height 0, since the first header sent by Tendermint has height 1.
* Runs the runtime invariant checks on start (in initChainer)
* Adds a few auxiliary functions to clear slashing periods
* Removes the Height field from Delegation objects in x/stake, which was not used anywhere
2018-11-26 04:21:23 -08:00
frog power 4000
7cb1ba625e
blockly minting ( #2825 )
...
* update mechanism to use average block time
* correctly sets accum height for zero-delegations
* update Decimal Format()
* clip withdrawal tokens
* PositiveDelegationInvariant
* DelegatorSharesInvariant
* DelAccumInvariants
2018-11-26 04:13:47 -08:00
Alessio Treglia
4c36b0fe05
Merge PR #2881 : Don't call gaiacli tx sign. Use utils.SignStdTx() instead.
...
This is to avoid command redirection and reduce the use
of viper's global variables.
Closes : #2875
2018-11-26 12:50:33 +01:00
Christopher Goes
c21961b21d
Merge PR #2886 : Don't get command through client.{Get,Post}Commands()
...
* Don't get command through client.{Get,Post}Commands()
Logic has changed recently and commands are now enriched
with flags by default.
Closes : #2884
2018-11-26 12:46:22 +01:00
Sunny Aggarwal
b7da2eaa33
Merge PR #2799 : Account numbers and sequences to uint64
2018-11-26 12:29:21 +01:00
yutianwu
2d071763d1
Merge PR #2899 : Remove redundant $
2018-11-26 11:26:05 +01:00
frog power 4000
8af2eb2b5f
Merge PR #2795 : Enforce block maximum gas limit in DeliverTx
...
R4R: Enforce block maximum gas limit in DeliverTx
2018-11-26 00:00:43 -05:00
rigelrozanski
f12ac439f7
dep
2018-11-25 23:44:51 -05:00
rigelrozanski
0da24727a3
Merge remote-tracking branch 'origin/develop' into rigel/deliver-max-gas
2018-11-25 23:34:11 -05:00
Jae Kwon
819af35962
Final fixes from review
2018-11-24 18:15:02 -08:00
Alexander Bezobchuk
5792e1d5c4
Apply suggestions from code review
...
Co-Authored-By: jaekwon <jae@tendermint.com>
2018-11-24 18:10:39 -08:00
dongsamb
33d64b6163
Merge PR #2891 : Remove redundant temporary code remDelPool when calc DelPool
2018-11-23 17:28:29 +01:00
rigelrozanski
ce10ef2b27
replaced proto with codec in baseapp
2018-11-22 12:41:20 -05:00
rigelrozanski
0861112b70
Merge remote-tracking branch 'origin/develop' into rigel/deliver-max-gas
2018-11-22 12:34:41 -05:00
rigelrozanski
56fa7dc4ef
fix BlockGasRecovery
2018-11-22 12:34:13 -05:00
Alessio Treglia
c22b400ba8
Add missing cmd
2018-11-22 15:49:56 +00:00
Alessio Treglia
b8b502c43a
Same for democli
2018-11-22 14:42:35 +00:00
Alessio Treglia
83793a8974
Update PENDING.md
2018-11-22 14:36:28 +00:00
Alessio Treglia
c245a3deb1
Don't get command through client.{Get,Post}Commands()
...
Logic has changed recently and commands are now enriched
with flags by default.
Closes : #2884
2018-11-22 13:51:51 +00:00
Christopher Goes
2d3e1afea8
Add demonstrative failing testcase
2018-11-22 11:21:11 +01:00
rigelrozanski
abed373d5c
extra max block gas test at limit
2018-11-22 00:36:12 -05:00
rigelrozanski
b4b61b890c
address some comments while reviewing Jaes work
2018-11-22 00:30:04 -05:00
rigelrozanski
972377c287
lint
2018-11-21 23:49:05 -05:00
John McDowall
f09fa33cfd
Merge PR #2802 : Correct the usage of misspelling of English word 'depositor'.
...
Throughout the codebase the misspelling 'depositer' of the English word
'depositor' has been used. This commit applies a global search and
replace to correct the misspelling.
2018-11-22 00:53:33 +01:00
Alessio Treglia
3e68e44063
Merge PR #2874 : gaiad gentx subcommands refactoring
...
* gaiad gentx subcommands refactoring
- Replace STDIN/STDOUT redirection in `gaiad gentx` with subcommands
command line options to redirect streams to file since viper does
not handle redirection well.
- Use `BuildCreateValidatorMsg` to build a `MsgCreateValidator` rather
than redirecting to `gaiacli tx stake create-validator`.
- `PrintUnsignedStdTx` now takes an `io.Writer` object.
- Mark `--pubkey`, `--amount` and `--moniker` as required flags
instead of validating them manually.
- Use stake.NewDescription() to make a new Description - ref #2835
* Refresh PENDING.md
2018-11-22 00:44:13 +01:00
Alexander Bezobchuk
1ea0e4c457
Merge PR #2863 : Transaction ValidateBasic
...
* Add ValidateBasic to Tx interface
* Update BaseApp unit tests
* Add missing return in ValidateBasic
* Update ValidateBasic to use IsNotNegative
* Add pending log entry
* Add unit test TestTxValidateBasic
* Fix broken lint regression
* Add sig count check to validation
* Add test case to TestTxValidateBasic
2018-11-21 11:16:56 +01:00
Federico Kunze
d227e2a29e
Merge PR #2869 : Gov tally endpoint
...
* Added tally endpoint
* Update querier.go
* rename queryable
* Address @alexanderbez comments
2018-11-21 10:54:51 +01:00
rigelrozanski
6fd3132e71
lint fix, merge fix
2018-11-21 02:02:15 -05:00
rigelrozanski
70e60c2f30
Merge remote-tracking branch 'origin/develop' into rigel/deliver-max-gas
2018-11-21 01:51:56 -05:00
Jae Kwon
bd982b1423
Merge reference/baseapp and spec/baseapp/WIP_abci_application.md
2018-11-20 20:23:09 -08:00
Jae Kwon
4afd53d81b
Consume block gas to tx gas limit even upon overconsumption
2018-11-20 20:07:30 -08:00
Jae Kwon
10bdf8fa03
Store ConsensusParams to main store
2018-11-20 16:44:49 -08:00
Jae Kwon
d911565d0b
Fix compile
2018-11-20 13:16:44 -08:00
Max Levy
d8bbf85efa
Merge PR #2866 : URL fixed
...
Follow up on Documentation Structure Change and Cleanup (#2808 )
2018-11-20 11:03:11 +01:00
Alexander Bezobchuk
41fc538ac7
Add Safety Measures to Coin/Coins ( #2797 )
2018-11-20 01:22:35 -08:00
Jae Kwon
47eed3958b
Clean up Context/MultiStore usage in BaseApp ( #2847 )
2018-11-20 01:06:14 -08:00
rigelrozanski
56dc2363fa
Merge remote-tracking branch 'origin/develop' into rigel/deliver-max-gas
2018-11-20 02:58:33 -05:00
Alexander Bezobchuk
6e813ab3a8
Change gas & related fields to unsigned integer type ( #2839 )
...
* Change gas & related fields to unsigned integer type
* Implement AddUint64Overflow
2018-11-19 09:13:45 -08:00
Jack Zampolin
f525717054
Standardize CLI Exports from Modules ( #2840 )
...
* Move query and tx commands to modules
* Move GetAccountDecoder to prevent import cycle and replace calls to it with one call in WithAccountDecoder
* Add moduleClients interface and implement in all applicable modules
* Use module clients in cli initialization
2018-11-19 09:02:34 -08:00
Christopher Goes
fd968f7d8f
R4R: Remove unused bank.MsgIssue (and prevent possible panic) ( #2855 )
...
* Remove all bank.MsgIssue code
2018-11-19 07:42:53 -08:00
Jack Zampolin
9676ce7d48
Expose LCD router, allowing devs to register custom routes from their modules ( #2836 )
...
* Fixes #1081
2018-11-16 14:21:36 -08:00
Alexander Bezobchuk
15b6fa0959
Cache-wrap context during ante handler exec ( #2781 )
...
* Use cache-wrapped multi-store in ante
* Implement TestBaseAppAnteHandler
* Add reference documentation for BaseApp/CheckTx/DeliverTx
2018-11-16 10:33:47 -08:00
Sunny Aggarwal
8d6b0929fb
Codespaces as Strings ( #2821 )
2018-11-16 09:12:24 -08:00
Zach
ca2270c87e
Merge PR #2831 : Fix dead link
2018-11-16 14:48:38 +01:00
Christopher Goes
bd723fa909
Merge PR #2829 : Add-genesis-account: validate app state accounts
...
* add-genesis-account: validate app state accounts
* Update PENDING.md
2018-11-16 11:55:54 +01:00
Christopher Goes
eb27c70292
Merge branch 'develop' into alessio/validate-addr-when-adding-genesis-account
2018-11-16 11:44:41 +01:00
Christopher Goes
9a37066405
Merge PR #2841 : Check whether key passed with --name exists before redirecting to tx create-validator
...
* Check whether key passed with --name exists before redirecting to tx create-validator
* Update PENDING.md
2018-11-16 11:40:37 +01:00
rigelrozanski
4818e67145
Merge remote-tracking branch 'origin/develop' into rigel/deliver-max-gas
2018-11-16 03:32:55 -05:00