Commit Graph

255 Commits

Author SHA1 Message Date
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
HaoyangLiu
9ee9e28439 Merge PR #2462: Add swagger-ui for gov, stake and slashing 2018-10-24 15:19:48 +02: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
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
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
Christopher Goes
8c2c9dba8a Update block height on validator bonding 2018-10-12 00:15:58 +02:00
ValarDragon
9e334afad0 Lock binary dependencies to a specific commits / versions
This is basically copying over @anton's great script!

Also had to run `make format` to make this pass `test_lint`.
This PR also makes the make commands for tools further align
with the tendermint implementation.
2018-10-09 23:52:36 -07:00
Christopher Goes
e251088672
Merge PR #2452: Fix LCD Validator Initialization 2018-10-09 20:10:37 +02:00
HaoyangLiu
1aebe103ba Merge branch 'develop' of https://github.com/cosmos/cosmos-sdk into bianjie/lcd-lite-swagger-ui 2018-10-09 09:21:45 +08:00
Aleksandr Bezobchuk
975065724b Revert back to 100 power for proposing validator 2018-10-08 02:51:29 +08:00
Aleksandr Bezobchuk
79a0339844 Use NewTestGaiaAppGenState in LCD test gen 2018-10-08 00:59:44 +08:00
Aleksandr Bezobchuk
2527e1fa3b Implement NewTestGaiaAppGenState and update LCD test bonding 2018-10-08 00:57:52 +08:00
HaoyangLiu
6d645f20fa Refactor keys handler according to code reviewers 2018-10-05 07:19:52 +08:00
HaoyangLiu
1acab69326 Fix test_lint failure and test_cover failure 2018-10-04 21:15:29 +08:00
HaoyangLiu
8e1bfee6ca Add swagger-ui for key management 2018-10-04 20:36:24 +08:00
HaoyangLiu
9f67e8af20 Merge PR #2215: Add swagger-ui for gaiacli lite-server 2018-10-04 13:00:24 +02:00
Christopher Goes
c676eab46b WithTrustNode, Makefile fixes, 'make format' 2018-10-04 08:34:39 +02:00
HaoyangLiu
1d4cfe89d2 Merge with develop 2018-10-04 08:10:29 +08:00
Alexander Bezobchuk
89d13d1f4c Merge PR #2429: LCD Properly Init Proposing Validator in Tests
* Refactor InitializeTestLCD to initialize correctly

* Update InitializeTestLCD API usage in LCD unit tests

* Update pending log

* Update named return variables

* Increase power of validator proposer in LCD tests
2018-10-03 12:42:44 -04:00
Christopher Goes
17983460b8
Merge PR #2219: Update to Tendermint 0.24 (except NextValSet offsets) 2018-10-03 17:48:23 +02:00
HaoyangLiu
5d259b1b39 Add post respones process to add json to header and decide whether bring in indent to make response more readable 2018-10-02 23:15:04 +08:00
HaoyangLiu
f5df1982f9 Add description for return type 2018-10-01 09:26:08 +08:00
HaoyangLiu
019b1d95cf unminify JS files according to cwgoes 2018-09-30 18:50:31 +08:00
HaoyangLiu
da5da6e3a1 Fix lcd test failure for endpoint change 2018-09-30 13:42:45 +08:00
HaoyangLiu
f896497db1 Improve swagger.yaml 2018-09-30 13:26:44 +08:00
HaoyangLiu
b7f27a0e1f update gopkg.lock and fix compile error 2018-09-30 12:53:30 +08:00
HaoyangLiu
d6f6a1f87f Merge with develop 2018-09-30 11:46:27 +08:00
HaoyangLiu
6e8b8e47ee Add swagger-ui for ICS0 and ICS20 2018-09-30 11:42:12 +08:00
Jae Kwon
1e26ba2e0e
CLIContext.Logger -> .Output as it isn't a logger (#2420)
This changes .Logger to .Output, as it isn't used anywhere except as os.Stdout.
2018-09-28 21:45:54 -07:00
HaoyangLiu
46e268efe2 Convert swagger.json to swagger.yaml 2018-09-27 22:07:39 +08:00
HaoyangLiu
bf24a42a29 Remove stake API from this PR 2018-09-27 19:54:33 +08:00
HaoyangLiu
4e3066131e Merge with develop 2018-09-27 19:41:38 +08:00
HaoyangLiu
c5affaa7bf Remove docs/clients/lcd-rest-api.yaml and add its content to client/lcd/swagger-ui/swagger.json 2018-09-27 19:36:22 +08:00