Emmanuel T Odeke
67c3af3bf8
cmd/tendermint: fix initialization file creation checks ( #991 )
...
* cmd/tendermint: fix initialization file creation checks
Fixes #989 .
The original initialization sequence started to inexplicably
fail
```shell
tendermint unsafe_reset_all
tendermint init
tendermint node --proxy_app=dummy
```
used to fail with
```shell
ERROR: Failed to create node: Couldn't read GenesisDoc file: open
/Users/emmanuelodeke/.tendermint/genesis.json: no such file or directory
```
because the initialization sequence always assumed that the
genesisDoc would only be set if the privValidator was generated.
However, `tendermint unsafe_reset_all` only created the
`priv_validator.json` file which would mean that then running
`tendermint init` would never create the `genesis.json` file
which if following the recommended sequence would then fail
since the `genesis.json` was absent.
* cmd/tendermint: Load PrivValidatorFS if existent, lest generate it
Feedback from @melekes
* change logging messages for init cmd
Refs #989
2017-12-20 12:50:27 -06:00
Ethan Buchman
462b755a60
activate PEX reactor by default
2017-12-13 12:25:48 -06:00
Ethan Buchman
5ecae52bf1
Merge branch 'master' into develop
2017-12-12 02:31:47 -05:00
Petabyte Storage
8be708fe5b
fix spelling and makefile gometalinter.v2
2017-12-11 20:48:15 -08:00
Ethan Buchman
11761d1769
initial port of cosmos-sdk basecli proxy
2017-12-11 22:23:13 -05:00
Anton Kaliaev
5ff0bb2100
default moniker to the host name (Refs #920 )
2017-12-07 12:49:29 -06:00
Anton Kaliaev
69b5da766c
service#Start, service#Stop signatures were changed
...
See https://github.com/tendermint/tmlibs/issues/45
2017-11-29 10:38:58 -06:00
Ethan Buchman
9529f12c28
more linting
2017-11-27 22:39:12 +00:00
Zach Ramsay
d7cb291fb2
errcheck; sort some stuff out
2017-11-27 22:39:11 +00:00
Zach Ramsay
563faa98de
address comments, pr #643
2017-11-27 22:39:11 +00:00
Zach Ramsay
8f0237610e
linting errors: clean it all up
2017-11-27 22:39:11 +00:00
Zach Ramsay
57ea4987f7
linting: apply errcheck part1
2017-11-27 22:39:11 +00:00
Zach Ramsay
46ccbcbff6
linting: apply 'gofmt -s -w' throughout
2017-11-27 22:39:11 +00:00
Zach Ramsay
3e61b8c17a
docs: comb through step by step
2017-10-23 19:11:51 -04:00
Zach Ramsay
d56b44f3a5
all: no more anonymous imports
2017-10-04 16:40:45 -04:00
Ethan Buchman
756818f940
fixes from review
2017-09-21 21:44:36 -04:00
Ethan Buchman
2131f8d330
some fixes from review
2017-09-21 17:21:20 -04:00
Ethan Buchman
75b97a5a65
PrivValidatorFS is like old PrivValidator, for now
2017-09-21 16:46:31 -04:00
Ethan Buchman
779c2a22d0
node: NewNode takes DBProvider and GenDocProvider
2017-09-21 15:54:33 -04:00
Ethan Buchman
147a18b34a
fix some comments
2017-09-21 15:52:25 -04:00
Ethan Buchman
944ebccfe9
more PrivValidator interface
2017-09-21 15:51:20 -04:00
Ethan Buchman
fd1b0b997a
PrivValidator interface
2017-09-21 15:51:20 -04:00
Ethan Buchman
abe912c610
FuncSignerAndApp allows custom signer and abci app
2017-09-21 15:50:43 -04:00
Ethan Buchman
66fcdf7c7a
minor fixes
2017-09-21 15:50:43 -04:00
Adrian Brink
4e13a19339
Add ability to construct new instance of Tendermint core from scratch
2017-09-21 15:50:43 -04:00
Adrian Brink
7dd3c007c7
Refactor priv_validator
...
Users can now just pass an object that implements the Signer interface.
2017-09-21 15:50:43 -04:00
Duncan Jones
0d392a0442
Allow Signer to be generated with priv key
...
Prior to this change, a custom Signer would have no knowledge of the private
key stored in the configuration file. This changes introduces a generator
function, which creates a Signer based on the private key. This provides an
opportunity for customer Signers to adjust behaviour based on the key
contents. (E.g. imagine key contents are a key label, rather than the key
itself).
2017-09-21 15:50:43 -04:00
Duncan Jones
7e4a704bd1
Remove reliance on default Signer
...
This change allows the default privValidator to use a custom Signer
implementation with no reliance on the default Signer implementation.
2017-09-21 15:50:43 -04:00
Adrian Brink
bf5e956087
Change capitalisation
2017-09-21 15:50:43 -04:00
Adrian Brink
2ccc3326ec
Remove redundant file
2017-09-21 15:50:43 -04:00
Adrian Brink
83f7d5c95a
Setup custom tendermint node
...
By exporting all of the commands, we allow users to setup their own
tendermint node cli. This enables users to provide a different
pivValidator without the need to fork tendermint.
2017-09-21 15:50:43 -04:00
Adrian Brink
2c129447fd
Example that showcases how to build your own tendermint node
...
This example shows how a user of the tendermint library can build their
own node and supply it with its own commands. It includes two todos in
order to make it easier for library users to use tendermint.
2017-09-21 15:50:43 -04:00
Ethan Buchman
3089bbf2b8
Amount -> Power. Closes #166
2017-09-21 14:59:27 -04:00
Ethan Buchman
aa78fc14b5
cmd: dont wait for genesis. closes #562
2017-09-06 01:57:21 -04:00
Ethan Buchman
d87acc2d1b
cmd: don't load config for version command. closes #620
2017-08-28 15:01:51 -04:00
Emmanuel Odeke
d8af26e75a
cmd/tendermint/commands: update ParseConfig doc
2017-08-12 16:29:11 -06:00
Ethan Buchman
37f1390473
CreateEmptyBlocks and CreateEmptyBlocksInterval
2017-08-08 16:22:37 -04:00
Ethan Buchman
fc3fe9292f
fixes from review
2017-07-28 22:12:11 -04:00
Ethan Buchman
e9a2389300
cmd: --consensus.no_empty_blocks
2017-07-28 22:11:45 -04:00
Ethan Buchman
75df0d91ba
comments from review
2017-07-10 13:39:23 -04:00
Ethan Frey
850da13622
Do some cleanup in the test, so it doesn't fail in my shell
2017-06-27 13:31:32 +02:00
Ethan Buchman
12c084c8c0
ParseGenesisFile -> types.GenesisDocFromFile
2017-06-26 16:16:54 -04:00
Ethan Frey
10982f4d8f
Add argument to ParseGenesis to use in light-client
2017-06-26 16:56:51 +02:00
Ethan Frey
6b38abd57b
Cleanup for loop in genesis file load
2017-06-26 13:58:34 +02:00
Ethan Frey
58105dbd4e
Refactored some commands to be more reusable
2017-06-26 13:58:34 +02:00
Ethan Buchman
dcc538ff32
Merge remote-tracking branch 'origin/feature/506-tracing-logger' into unstable
2017-06-23 21:16:02 -04:00
Anton Kaliaev
9dcf130d67
update tmlibs (Refs #504 )
2017-06-12 19:25:34 +04:00
Anton Kaliaev
ed7183936d
move log level parsing to tmlibs/cli package (Refs #504 )
2017-06-12 19:08:39 +04:00
Ethan Buchman
bd7ec18c19
fix tests
2017-05-26 12:17:32 -04:00
Ethan Buchman
fc6611b2d9
[config] RPCConfig
2017-05-24 13:56:12 -04:00
Anton Kaliaev
9bc1790320
tracing logger (Refs #506 )
...
DEPENDS ON https://github.com/tendermint/tmlibs/pull/21
2017-05-24 14:28:25 +02:00
Anton Kaliaev
fb0df75de0
changes per Frey comments (Refs #493 )
2017-05-16 15:16:50 +02:00
Anton Kaliaev
05a8204508
per module log levels (Refs #493 )
2017-05-16 13:57:28 +02:00
Anton Kaliaev
f8fdbe3dbc
changes as per Bucky's review
2017-05-13 16:22:51 +02:00
Anton Kaliaev
bc4e6566e7
[p2p] refactor upnp to use new logger
2017-05-13 10:24:59 +02:00
Anton Kaliaev
f803544195
new logging
2017-05-13 10:24:58 +02:00
Ethan Buchman
edd7263f06
fixes from review
2017-05-05 12:25:53 -04:00
Ethan Frey
dd1f5a2268
Test config parsing in root command
2017-05-05 15:30:39 +02:00
Ethan Buchman
46151720f8
fix tests
2017-05-04 22:46:41 -04:00
Ethan Buchman
9109b20852
SetRoot
2017-05-04 22:46:41 -04:00
Ethan Frey
6b059e0063
Accept relative paths in all configs, TODO: must SetRoot
2017-05-04 22:46:40 -04:00
Ethan Frey
92dee7ea3c
Commands compile (mostly) with new config reading
2017-05-04 22:46:40 -04:00
Ethan Buchman
f217f2b2c5
cleanup run_node flags
2017-05-04 22:46:13 -04:00
Ethan Buchman
1ef7c1d25b
cmd: fixes for new config
2017-05-04 22:43:55 -04:00
Ethan Buchman
7db7bbe464
node: ConfigFromViper
2017-05-04 22:43:55 -04:00
Ethan Buchman
75b6c5215f
fewer structs. remove viper from consensus
2017-05-04 22:43:55 -04:00
Ethan Buchman
d8fb226ec4
new config
2017-05-04 22:43:55 -04:00
Ethan Buchman
95c74b2ccd
remove some more viper
2017-05-04 22:43:55 -04:00
Ethan Buchman
efeadcc0f4
some cleanup from review
2017-04-28 23:18:38 -04:00
Ethan Buchman
fcf78a5da7
cleanup go-config/viper and some unnamed imports
2017-04-25 14:54:56 -04:00
rigel rozanski
72c4be35e8
tiny fix
2017-04-25 13:44:13 -04:00
Rigel Rozanski
5d0c2a1414
commands: Run -> RunE
2017-04-25 13:44:13 -04:00
Rigel Rozanski
6e662337ff
dont export resetPrivValidator
2017-04-25 13:43:57 -04:00
Rigel Rozanski
270b68a893
glide lock updates
2017-04-25 13:43:22 -04:00
Rigel Rozanski
cefb2bede0
adding viper
...
int
int
2017-04-25 13:42:22 -04:00
rigelrozanski
47852122d0
changed reset commands
2017-04-25 13:34:46 -04:00
Ethan Buchman
56c60fba23
go-p2p -> tendermint/p2p
2017-04-21 18:19:41 -04:00
Ethan Buchman
e6fe6b5b76
go-data -> go-wire/data
2017-04-21 18:13:25 -04:00
Ethan Buchman
d1926bcad1
use tmlibs
2017-04-21 18:12:54 -04:00
Ethan Frey
e325ffc681
Lots of updates to use new go-crypto / json style
2017-04-21 16:51:17 -04:00
Ethan Buchman
e8cad948e3
cli: ResetAll doesnt depend on cobra
2017-04-21 12:54:53 -04:00
Ethan Buchman
53e2b9693a
export ResetAll cmd
2017-04-21 12:46:12 -04:00
Ethan Buchman
7cf773e2d3
cli: testnet cmd inits files for testnet
2017-04-20 18:22:42 -04:00
Ethan Buchman
f5b77d50b5
fix setting log level
2017-04-20 17:56:49 -04:00
rigelrozanski
fab518fc98
flag fix, glide update
...
squash
2017-03-06 17:32:42 -05:00
rigelrozanski
fa609366d4
melekes change request
2017-03-06 17:30:06 -05:00
rigelrozanski
569fd474c2
added use of Cobra CLI
...
squash
2017-03-06 17:30:06 -05:00
Ethan Buchman
05d8cd50b5
update glide and node.go for update to p2p.AddrBook
2017-03-04 23:45:54 -05:00
Ethan Buchman
a4d5ec491e
Merge pull request #411 from tendermint/bugfix/init-should-not-overwrite-existing-files
...
do not overwrite existing files when doing `tendermint init`
2017-02-20 22:03:22 -05:00
Anton Kaliaev
a99885cd43
do not overwrite existing files when doing `tendermint init` ( Fixes #410 )
2017-02-20 11:14:27 +04:00
Ethan Buchman
0bec99fbd4
consensus: handshake replay test using wal
2017-02-17 19:12:05 -05:00
Anton Kaliaev
4896364952
[cli] cleanup gen_validator output ( Fixes #396 )
...
so we can pipe result to a file:
```
tendermint gen_validator > example.json
```
before this we had to cut first 3 lines:
```
tendermint gen_validator | sed 1,3d > example.json
```
2017-02-08 23:24:19 +04:00
Jae Kwon
67ab574e98
Cleanup, add stub for VerifyCommitAny
2017-01-29 13:50:53 -08:00
Anton Kaliaev
3b7a1d7149
check that we have enough arguments
...
Otherwise:
```
panic: runtime error: index out of range
goroutine 1 [running]:
panic(0xbb8de0, 0xc82000e080)
/usr/local/go/src/runtime/panic.go:464 +0x3e6
main.main()
/go/src/github.com/tendermint/tendermint/cmd/tendermint/main.go:48 +0x811
```
2017-01-24 21:20:29 +04:00
Anton Kaliaev
17e822757b
output all commands
2017-01-24 21:19:45 +04:00
Jae Kwon
9a2dd8bc92
Refactor Node; Node is a simple BaseService
2017-01-15 16:59:10 -08:00
Jae Kwon
a073b1db9c
Refactor replay console -> replay_file in consensus/replay_file.go
2017-01-15 16:19:02 -08:00
Ethan Buchman
f347143b3d
Merge branch 'master' into develop
...
Conflicts:
cmd/tendermint/flags.go
glide.lock
glide.yaml
node/node.go
rpc/core/routes.go
version/version.go
2017-01-12 20:48:10 -05:00
Ethan Buchman
c147b41013
TMSP -> ABCI
2017-01-12 15:53:32 -05:00
Ethan Buchman
db437e7a45
broadcast_tx via grpc
2016-12-02 00:29:25 -05:00