Updated RequireInit, latest light-client
This commit is contained in:
parent
e37c0cf538
commit
e839a92f88
|
@ -5,7 +5,7 @@
|
||||||
Make lots of small cli fixes that arose when people were using the tools for
|
Make lots of small cli fixes that arose when people were using the tools for
|
||||||
the testnet.
|
the testnet.
|
||||||
|
|
||||||
ENHANCEMENTS:
|
IMPROVEMENTS:
|
||||||
- basecoin
|
- basecoin
|
||||||
- `basecoin start` supports all flags that `tendermint node` does, such as
|
- `basecoin start` supports all flags that `tendermint node` does, such as
|
||||||
`--rpc.laddr`, `--p2p.seeds`, and `--p2p.skip_upnp`
|
`--rpc.laddr`, `--p2p.seeds`, and `--p2p.skip_upnp`
|
||||||
|
@ -14,7 +14,7 @@ ENHANCEMENTS:
|
||||||
- `basecli query account` accepts hex account address with or without `0x`
|
- `basecli query account` accepts hex account address with or without `0x`
|
||||||
prefix
|
prefix
|
||||||
- `basecli init` is more intelligent and only complains if there really was
|
- `basecli init` is more intelligent and only complains if there really was
|
||||||
a connected chain
|
a connected chain, not just random files
|
||||||
- support `localhost:46657` or `http://localhost:46657` format for nodes,
|
- support `localhost:46657` or `http://localhost:46657` format for nodes,
|
||||||
not just `tcp://localhost:46657`
|
not just `tcp://localhost:46657`
|
||||||
- gives error message when running commands on an unitialized chain, rather
|
- gives error message when running commands on an unitialized chain, rather
|
||||||
|
@ -54,7 +54,7 @@ BREAKING CHANGES:
|
||||||
- app
|
- app
|
||||||
- Implements ABCI handshake by proxying merkleeyes.Info()
|
- Implements ABCI handshake by proxying merkleeyes.Info()
|
||||||
|
|
||||||
ENHANCEMENTS:
|
IMPROVEMENTS:
|
||||||
- `basecoin init` support `--chain-id`
|
- `basecoin init` support `--chain-id`
|
||||||
- intergrates tendermint 0.10.0 (not the rc-2, but the real thing)
|
- intergrates tendermint 0.10.0 (not the rc-2, but the real thing)
|
||||||
- commands return error code (1) on failure for easier script testing
|
- commands return error code (1) on failure for easier script testing
|
||||||
|
@ -83,7 +83,7 @@ BUG FIXES:
|
||||||
BREAKING CHANGES:
|
BREAKING CHANGES:
|
||||||
- only those related to the tendermint 0.9 -> 0.10 upgrade
|
- only those related to the tendermint 0.9 -> 0.10 upgrade
|
||||||
|
|
||||||
ENHANCEMENTS:
|
IMPROVEMENTS:
|
||||||
- basecoin cli
|
- basecoin cli
|
||||||
- integrates tendermint 0.10.0 and unifies cli (init, unsafe_reset_all, ...)
|
- integrates tendermint 0.10.0 and unifies cli (init, unsafe_reset_all, ...)
|
||||||
- integrate viper, all command line flags can also be defined in environmental variables or config.toml
|
- integrate viper, all command line flags can also be defined in environmental variables or config.toml
|
||||||
|
|
|
@ -24,7 +24,7 @@ import (
|
||||||
var SendTxCmd = &cobra.Command{
|
var SendTxCmd = &cobra.Command{
|
||||||
Use: "send",
|
Use: "send",
|
||||||
Short: "send tokens from one account to another",
|
Short: "send tokens from one account to another",
|
||||||
RunE: doSendTx,
|
RunE: commands.RequireInit(doSendTx),
|
||||||
}
|
}
|
||||||
|
|
||||||
//nolint
|
//nolint
|
||||||
|
@ -47,10 +47,6 @@ func init() {
|
||||||
|
|
||||||
// runDemo is an example of how to make a tx
|
// runDemo is an example of how to make a tx
|
||||||
func doSendTx(cmd *cobra.Command, args []string) error {
|
func doSendTx(cmd *cobra.Command, args []string) error {
|
||||||
if err := commands.RequireInit(cmd); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// load data from json or flags
|
// load data from json or flags
|
||||||
tx := new(btypes.SendTx)
|
tx := new(btypes.SendTx)
|
||||||
found, err := txcmd.LoadJSON(tx)
|
found, err := txcmd.LoadJSON(tx)
|
||||||
|
|
|
@ -16,14 +16,10 @@ import (
|
||||||
var AccountQueryCmd = &cobra.Command{
|
var AccountQueryCmd = &cobra.Command{
|
||||||
Use: "account [address]",
|
Use: "account [address]",
|
||||||
Short: "Get details of an account, with proof",
|
Short: "Get details of an account, with proof",
|
||||||
RunE: doAccountQuery,
|
RunE: lcmd.RequireInit(doAccountQuery),
|
||||||
}
|
}
|
||||||
|
|
||||||
func doAccountQuery(cmd *cobra.Command, args []string) error {
|
func doAccountQuery(cmd *cobra.Command, args []string) error {
|
||||||
if err := lcmd.RequireInit(cmd); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
addr, err := proofcmd.ParseHexKey(args, "address")
|
addr, err := proofcmd.ParseHexKey(args, "address")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
hash: 4cef4b780c9acbedce588a7221903fa1c63c2ddef1237522bcf6b045c35f9c56
|
hash: 0075efad18304d9958e655550e042eb4cbeaf78ba5fbebc5f2c5bf0b2a48910b
|
||||||
updated: 2017-06-26T17:36:35.75642408+02:00
|
updated: 2017-06-26T21:33:20.786071254+02:00
|
||||||
imports:
|
imports:
|
||||||
- name: github.com/bgentry/speakeasy
|
- name: github.com/bgentry/speakeasy
|
||||||
version: 4aabc24848ce5fd31929f7d1e4ea74d3709c14cd
|
version: 4aabc24848ce5fd31929f7d1e4ea74d3709c14cd
|
||||||
|
@ -132,7 +132,7 @@ imports:
|
||||||
- data
|
- data
|
||||||
- data/base58
|
- data/base58
|
||||||
- name: github.com/tendermint/light-client
|
- name: github.com/tendermint/light-client
|
||||||
version: 3d9d9b1a9cde59c8b72f5955e3686a17efe7f6f2
|
version: bf3063db6253fc2e9a837eda38de4a26da299bcb
|
||||||
subpackages:
|
subpackages:
|
||||||
- certifiers
|
- certifiers
|
||||||
- certifiers/client
|
- certifiers/client
|
||||||
|
|
|
@ -22,7 +22,7 @@ import:
|
||||||
subpackages:
|
subpackages:
|
||||||
- data
|
- data
|
||||||
- package: github.com/tendermint/light-client
|
- package: github.com/tendermint/light-client
|
||||||
version: feature/35-cli-cleanup
|
version: develop
|
||||||
subpackages:
|
subpackages:
|
||||||
- commands
|
- commands
|
||||||
- commands/proofs
|
- commands/proofs
|
||||||
|
|
Loading…
Reference in New Issue