Commit Graph

514 Commits

Author SHA1 Message Date
Sunny Aggarwal
1d3a04a61c Switch gov proposal-queues to use iterators (#2638)
* switched gov proposals queue to use iterators
* update gov spec
* update proposal.Equal
* Amino api change
* switched proposalID to uint64
* renamed Gov Procedures to Params
* s/ActiveProposalQueueProposalKey/KeyActiveProposalQueueProposal/g
* numLatestProposals -> Limit
* fixed staking invariant breakage because of gov deposits
* Send deposits to DepositedCoinsAccAddr or BurnedDepositCoinsAccAddr
2018-11-06 23:33:18 -08:00
Alessio Treglia
c20fcbfd8f New genesis workflow (#2602)
New genesis workflow:
* `gaiad init` is now used to generate an empty `genesis.json`.
* Genesis accounts need to be populated manually before running
  `gaiad collect-gentxs`.
* This should support starfish too, see #2615 for more info.
* Closes: #2596 #2615
* Validate validator address and address against respective account ex ante
* Fix local testnet failures
* New genesis tests
* Run make format
* Add --pubkey flag
* gaiad collect-gentxs takes no args
2018-11-04 20:26:46 -08:00
Jae Kwon
5b74e1d0b6
Bez/tm0.26 update pt 2 redux (#2684)
* Update to TM v0.26.0
* Update TODOs
* Proof and verification updates
* Fix linting
* Fix key path creation
* Temporarily fix tendermint revision to make tests pass
2018-11-04 19:36:35 -08:00
Alexander Bezobchuk
50926fffff Update to TM v0.26.0 - Part I (#2679)
* Update to TM v0.26.0
2018-11-04 18:28:38 -08:00
Rigel
0d5ebd2495
Merge PR #2667: Gaialite signal handling fix
Gaialite signal handling is broken, repair it
2018-11-02 12:43:07 -04:00
Alessio Treglia
e598af9eb6
Fix lint 2018-11-02 13:47:14 +00:00
Alessio Treglia
36bb4409b6
Refactor TrapSignal 2018-11-02 13:44:40 +00:00
Alessio Treglia
a0a6bad4c0
Fix test 2018-11-02 13:37:23 +00:00
Alessio Treglia
48192ea3d4
Gaialite signal handling is broken, repair it 2018-11-02 08:42:29 +00:00
Alessio Treglia
91dcd0f82a
Include DNS alt name in certificate
Closes: #2664
2018-11-02 08:17:57 +00:00
Alessio Treglia
3657ff4ada Merge PR #2656: Revert read-only leveldb database
* Revert read-only leveldb database

Waiting on a fix for syndtr/goleveldb#240.

* Update client/keys/utils.go
2018-11-02 00:29:21 +01:00
Christopher Goes
fcf5b7764b
Merge PR #2622: Make simulation use a transition matrix for block size
Make simulation use a transition matrix for block size
This enables simulating periods of high load, and periods of low to no load.
(low load because future ops will still terminate in that time frame)
2018-10-31 20:10:35 +01:00
Alessio Treglia
bc583ab1d0
Various sign command improvements
- Exit with error if the user is attempting to sign with a key
  whose address is not among those who are expected to sign
  the transaction.

- Add --print-signature-only to output only the generated
  signature.
2018-10-31 13:41:26 +00:00
ValarDragon
e4b5e2c9f3 Make simulation use a transition matrix for block size
This enables simulating periods of high load, and periods of low to no load.
(low load because future ops will still terminate in that time frame)
2018-10-28 21:37:19 -07:00
Alessio Treglia
ebca085fab
Merge pull request #2593 from cosmos/bez/fix-keys-new-perm
Fix DB Write Permissions for gaia keys new
2018-10-24 19:43:31 -07:00
Aleksandr Bezobchuk
507438bf7b Additional cleanup 2018-10-24 16:45:55 -04:00
Aleksandr Bezobchuk
23f62f7761 Fix db write perm 2018-10-24 16:34:30 -04:00
Christopher Goes
234262160e 'make format' 2018-10-24 15:37:06 +02:00
Christopher Goes
c577831261
Merge PR #2554: Make gaiacli keys show multisig-ready 2018-10-24 15:24:12 +02:00
HaoyangLiu
9ee9e28439 Merge PR #2462: Add swagger-ui for gov, stake and slashing 2018-10-24 15:19:48 +02:00
Alessio Treglia
6664cd5afd
Fix stupid mistake 2018-10-23 12:43:36 -07:00
Sunny Aggarwal
d666658ca9 Merge PR #2553: Renamed msg.Name() and msg.Type() to msg.Type() and msg.Route() 2018-10-23 21:23:55 +02:00
Christopher Goes
a231bd8ccc
Merge PR #2555: Don't acquire lock on read-only keybase 2018-10-23 21:03:08 +02:00
Alessio Treglia
cd49e978f9
Make "multi" const 2018-10-23 11:46:43 -07:00
Alessio Treglia
6ace08b505
Remove shorthand 2018-10-23 11:44:47 -07:00
Alexander Bezobchuk
450873d080
Update client/keys/utils.go
Co-Authored-By: alessio <quadrispro@ubuntu.com>
2018-10-23 10:47:20 -07:00
Alessio Treglia
230c69b438
Validate threshold rather than letting it panic 2018-10-22 17:13:36 -07:00
Alessio Treglia
44a6c21ad9
Add tests 2018-10-22 14:43:57 -07:00
Alessio Treglia
add15b5b28
Merge review comments/changes 2018-10-22 14:29:27 -07:00
Alessio Treglia
8d24465845
Run make format 2018-10-22 13:37:28 -07:00
Alessio Treglia
322a029ab5
Make gaiacli keys show multisig-ready 2018-10-22 12:00:57 -07:00
Federico Kunze
301fdf4a40 test cleanup 2018-10-22 14:21:53 +02:00
Federico Kunze
77177b2861 Merge develop and conflicts 2018-10-22 11:18:51 +02:00
Federico Kunze
152b3bd67b Split delegator summary endpoint 2018-10-20 22:25:50 +02:00
Federico Kunze
8999a4d719 Add validator unbonds 2018-10-20 21:30:07 +02:00
Federico Kunze
5e1720b6cb Added LCD tests 2018-10-20 21:10:19 +02:00
Cong Zhao
6c623b203e #1255 make keybase opened with readonly option to support better parallelization between gaiacli 2018-10-20 20:26:15 +08:00
Rigel
b48d0d5623 Merge PR #2527: Minting 2018-10-19 20:36:00 +02:00
Alessio Treglia
593921d04d Merge PR #2524: Replace GenTx with StdTx
Rework the process of loading a genesis.json file to load a starting app state and set of initial transactions to process.

* New function to create genesis account from MsgCreateValidator
* Add arg to PrintUnsignedStdTx() to actually operate in offline mode
* New func processStdTxs()
* Remove gen-tx command
* Cleanup, return validators as they need to be written into genesis.json
* Modify gaiad init to allow auto-create of stdTx
* Remove server/testnet.go
* Don't load node_key.json, which might not be available
* Get the txs through DeliverTx
* Add app.slashingKeeper.AddValidators at the end of genesis
* On InitChain(), Signature's account number must be 0
* Add (tentative?) command to generate {node_key,priv_validator}.json files
* Reintroduce gaiad testnet
* Prompt user for passwords
* Update gaia to work with auth.StdTx
* Remove test_utils, NewTestGaiaAppGenState is now deprecated
* Combine --genesis-format and --generate-only
* Improve sign command's --offline flag documentation
* Moniker must be set
* Call app.slashingKeeper.AddValidators() even if len(txs) == 0
* Refactoring, introduce gaiad init --skip-genesis, code cleanup
* Drop unnecessary workaround to make lcd_tests pass
* Reintroduce gentx
* Simple name changes, GenesisState.Txs -> .GenTxs; OWK -> OverwriteKey; OverwriteKeys -> OverwriteKey
2018-10-19 20:00:27 +02:00
Federico Kunze
ad355d6c69 Merge PR #2444: Standardize REST error responses 2018-10-19 18:55:20 +02:00
Alessio Treglia
ad05d7cc33 Merge PR #2523: Remove 'import "C"' from client/utils package 2018-10-18 00:49:57 +02:00
David Braun
e845569d16 Merge PR #2496: Add example to Swagger specification for /keys/seed 2018-10-17 20:25:02 +02:00
Ethan Buchman
1ee8deed2b Merge PR #2090: Improve crypto/keys and add keys mnemonic and keys new commands
* crypto/keys/hd: use btcec to remove dep on tendermint

* crypto/keys/bcrypt: improve comment about fork

* crypto/keys/bip39 -> crypto/keys/bip39/fundraiser

* crypto/keys/bip39: bring in fork of tyler-smith

* crypto/keys/hd: update dep

* crypto/keys: update deps

* crypto/keys: move mintkey.go into new crypto/keys/mintkey

* crypto/keys/hd: NewParamsFromPath

* crypto/keys: keybase.Derive takes a bip39 passphrase too

* crypto/keys/hd: BIP44Params.DerivationPath

* gaiacli keys: add commands new and mnemonic

* fix lints

* minor fixes from review

* update Gopkg.toml

* add tendermint fork of golang.org/x/crypto
* pin some transitive deps

* crypto/keys/bcrypt: remove

* remove in favour of fork of golang.org/x/crypto/bcrypt at github.com/tendermint/crypto/bcrypt

* crypto/keys/bip39: remove completely

* use fork cosmos/go-bip39 instead

* Gopkg.toml: dont use master

* Pull in changes from my PR

* fixes from review

* enforce min len for --unsafe-entropy

* lint fix

* feedback from review

* fix dep
2018-10-17 13:37:58 -04:00
Sunny Aggarwal
070bda3a25 Merge PR #2515: Fix gov deposit query lcd non-determinism
* non deterministic addr ordering

* sorted addrs at gen

* fixed comment

* fixed names and passwords
2018-10-17 00:55:36 -04:00
Christopher Goes
2c4d9a0be4 Merge branch 'develop' into cwgoes/fix-signing-info-bugs 2018-10-15 21:04:49 +02:00
Federico Kunze
6dc6a78422 fix import 2018-10-15 10:44:15 +02:00
Federico Kunze
8e1d0fbac0 Add option to indent response 2018-10-15 10:41:37 +02:00
Federico Kunze
2b701655d9 test deposit values 2018-10-15 10:27:24 +02:00
Federico Kunze
f8486aeca5 Add deposits endpoint and tests 2018-10-12 19:05:22 -07:00
Christopher Goes
6e4a8d9e16 Update spec 2018-10-12 01:04:57 +02:00