Commit Graph

290 Commits

Author SHA1 Message Date
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
Ethan Buchman 8b80f8ee05 feature flag: pex reactor 2016-11-30 23:07:45 -05:00
Jae Kwon 3d3d8b5b7b cswal -> cs_wal_dir 2016-10-30 03:55:27 -07:00
Ethan Buchman 3f4af438c5 remove INSTALL dir, add INSTALL.md, update DOCKER 2016-10-11 23:27:59 -04:00
Ethan Buchman 1110c5d37d privVal.LastSignBytes and more replay tests 2016-08-14 13:33:03 -04:00
Ethan Buchman cac3cefd98 set log level. use p2p config 2016-06-11 20:19:58 -07:00
Ethan Buchman 2a1e7a427d support tmsp via grpc 2016-05-23 14:46:32 -04:00
Jae Kwon ad17090a0f No global config 2016-05-08 15:00:58 -07:00
Jae Kwon a8ee0377d5 Use tmsp.Client interface 2016-03-24 10:42:05 -07:00
Jae Kwon 9b4b533f2f Pretty print JSON 2016-03-19 16:58:15 -07:00
Ethan Buchman 50ac66f79b fast sync fixes 2016-02-07 16:56:59 -08:00
Jae Kwon 0f1cf243fd Merge remote-tracking branch 'origin/replay' 2016-01-28 19:53:22 -08:00
Ethan Buchman 3cce757adc move DialSeeds to go-p2p and add to rpc 2016-01-20 13:12:42 -05:00
Ethan Buchman 2b13386d7b consensus: replay console 2016-01-14 18:58:11 -05:00
Ethan Buchman 6aaa5fb0bf consensus: msg saving and replay 2016-01-14 18:58:11 -05:00
Jae Kwon d58b3d54b1 tendermint init makes random chain ID 2015-12-21 16:30:28 -08:00
Ethan Buchman 5cbb5d2541 tendermint init 2015-12-21 17:52:00 -05:00
Jae Kwon e5b9a5e849 Add proxy_app as node flag 2015-12-04 00:47:11 -08:00
Jae Kwon 1df2d7b8eb Remove spurious programs 2015-12-01 22:05:44 -08:00
Jae Kwon 37b6255e42 Move process to go-process 2015-11-08 17:43:48 -08:00
Jae Kwon e12f9d10e7 Bare consensus refactor 2015-11-01 11:34:08 -08:00
Jae Kwon c4ed55d801 Refactor to move common libraries out of project 2015-10-22 17:39:06 -07:00
Jae Kwon 7c12c5aee3 Fix config bug where chain_id is default magic. Always read from genesis 2015-10-20 17:39:03 -07:00
Jae Kwon d51741df72 fix main compile bug 2015-10-18 09:04:46 -07:00
Jae Kwon f70b548fb6 exit status 1 for unknown command 2015-10-18 08:45:18 -07:00
Jae Kwon 26905b1260 Make Tendermint genesis agnostic; wait for file to start node 2015-10-18 07:20:05 -07:00
Jae Kwon 5102f7a9cb refactor process.Process to take files 2015-10-17 15:13:19 -07:00
Ethan Buchman b54522c60f more versioning 2015-09-16 05:08:06 +00:00
Jae Kwon ab24ae1da8 get_account fix 2015-08-14 14:47:25 -07:00
Jae Kwon 56b195a899 tendermint send_tx 2015-08-14 14:11:11 -07:00
Jae Kwon 4d765dcf2b Generate account from seed 2015-08-14 10:49:44 -07:00
Jae Kwon b37ff75f7a Actually expose skip_upnp flag 2015-08-11 11:01:18 -07:00
Jae Kwon 1b9fd811a1 RPCResponse.Result && EventData are registered interfaces; -skip_upnp option 2015-08-11 11:01:18 -07:00
Jae Kwon 908fd11665 more explicit _, err := Start() checking 2015-08-11 11:01:17 -07:00
Jae Kwon e86073ec96 Use rpc/client/ws_client; OnStart() returns error 2015-08-11 11:01:17 -07:00
Jae Kwon 3949d3f21d ws_client fixes 2015-08-11 11:01:17 -07:00
Jae Kwon 60310cc23f websocket server sends pings; added ws_client; events refactor 2015-08-11 11:01:17 -07:00
Jae Kwon 3be3647dc8 tendermint/binary -> tendermint/wire 2015-07-28 12:18:17 -07:00
Jae Kwon f97d19fb1f Debora's default log level is notice 2015-07-20 17:31:07 -07:00
Ethan Buchman bb4ca1407f info->notice, debug->info 2015-07-19 22:44:40 +00:00
Jae Kwon 1e7cc32597 tendermint/account -> acm 2015-07-19 09:40:55 -07:00
Ethan Buchman dc7b912881 crypto byte arrays are fixed length 2015-07-17 17:19:16 -04:00
Jae Kwon 109a3c2dd3 Added sim_txs draft 2015-07-11 18:01:21 -07:00
Jae Kwon 0f61785cba Added logjack for splitting up the tendermint log file 2015-07-09 18:23:55 -07:00
Jae Kwon cc3a76f6c8 Quit upgrade_barak script upon error 2015-07-08 14:43:38 -07:00
Jae Kwon 269911ab98 barak -config, not barak -options-file 2015-07-08 13:09:47 -07:00
Jae Kwon 0a8fb72a08 filelogger -> stdinwriter 2015-07-08 13:07:05 -07:00
Jae Kwon 28d7a21156 filelogger to write output to a file 2015-07-08 12:43:05 -07:00
Jae Kwon 53a1cd2fbf upgrades to debora/barak to allow shutting down barak 2015-07-07 19:26:33 -07:00
Jae Kwon 9965dd5de6 uint* to int* whereever appropriate; https://www.reddit.com/r/golang/comments/2q5vdu/int_vs_uint/ 2015-06-25 20:28:34 -07:00
Jae Kwon a55950e1d0 make will install 2015-06-25 18:42:17 -07:00
Ethan Buchman 57ff919d50 godep 2015-06-09 23:17:19 -04:00
Ethan Buchman 2045aee9cd pass chainID through sign interfaces 2015-05-29 18:14:19 -04:00
Jae Kwon 8c3deb402f CloseListener() actually closes the listener 2015-05-22 00:23:21 -07:00
Jae Kwon 5029d53474 add open/close to debora, barak bug fix 2015-05-22 00:23:20 -07:00
Jae Kwon c297f41a9f Refactoring barak 2015-05-22 00:23:20 -07:00
Jae Kwon 3565db4eef Refactor RPC/*, tendermint/config for debora+barak 2015-05-17 16:19:58 -07:00
Jae Kwon 75ef479547 Config is passed into each module. Remove tendermint/confer 2015-05-17 16:19:57 -07:00
Jae Kwon 9e1c054f87 Better INSTALL readme. Steps for barak 2015-05-14 17:22:02 -07:00
Jae Kwon dd3d35f9f1 tendermint init to get the moniker 2015-05-12 18:29:00 -07:00
Jae Kwon 85c8850ac2 Config names have no dots, are under_scored. 2015-05-12 17:40:29 -07:00
Jae Kwon c0d67112c3 updated barak keys 2015-05-11 21:34:59 -07:00
Jae Kwon 01b21fcbf2 Barak registration fix. Retries every hour now. 2015-05-05 13:45:30 -07:00
Jae Kwon 5759ff9b50 debora+barak updates for downloading 2015-05-05 13:22:03 -07:00
Jae Kwon dbae194731 added debora default.cfg file 2015-05-04 18:37:16 -07:00
Ethan Buchman acc882ab0d add ethan's barak 2015-05-04 18:30:33 -07:00
Jae Kwon 84c3fd9a85 more debug messages for consensus 2015-05-04 11:18:21 -07:00
Jae Kwon 9babda1d7a create registry.log if not there. 2015-04-28 04:01:29 -07:00
Jae Kwon 7eefbd23fa Ensure that the pidfile is written after all logic for Barak is
complete.
2015-04-24 14:01:22 -07:00
Jae Kwon e294b1f954 Debora has a pretty list. 2015-04-24 13:13:44 -07:00
Jae Kwon fcc26d7355 Resolve host for NetAddressFromString(). Test fix. 2015-04-23 18:41:14 -07:00
Jae Kwon d9bfe82d93 rpc.StartHTTPServer listener bug fix 2015-04-23 18:33:20 -07:00
Jae Kwon 66ff985cd2 Added a registry to Barak. 2015-04-23 16:56:46 -07:00
Jae Kwon 9513f601de Removed Log.File, all log goes out to stdout. 2015-04-22 11:07:34 -07:00
Jae Kwon 5e70769117 Crazy colors for Debora 2015-04-21 17:42:08 -07:00
Jae Kwon df026f64fa Remoted bytes from logging messages 2015-04-20 18:51:20 -07:00
Jae Kwon dc051eb87f third time is the charm 2015-04-20 18:01:30 -07:00
Jae Kwon 99a040998f Added unsafe_reset_priv_validator 2015-04-20 16:53:15 -07:00
Jae Kwon 4948fe7725 Debora download command 2015-04-20 14:47:59 -07:00
Jae Kwon 8c0fe845c7 barak writes pidfile 2015-04-19 16:45:10 -07:00
Jae Kwon a4c098ac0b Format of debora output 2015-04-19 16:20:00 -07:00
Jae Kwon 8b36f308e2 Add command logging to barak 2015-04-19 15:51:43 -07:00
Jae Kwon 59e69434e1 improved barak with logging into ~/.barak/outputs 2015-04-19 15:45:06 -07:00
Jae Kwon 5e45a849ab Generate PrivValidator file when it doesn't exist already 2015-04-18 14:46:44 -07:00
Jae Kwon 2151f6f5d6 barak takes an output-file as option 2015-04-17 11:45:13 -07:00
Jae Kwon b0f696a687 improve debora output 2015-04-17 11:17:45 -07:00
Jae Kwon 731b51f703 output file rename 2015-04-17 11:11:13 -07:00
Jae Kwon 389a1c1fef second seed to open another port 2015-04-17 10:29:45 -07:00
Jae Kwon 75697034bd ReadOutput for process, and --wait will read process output 2015-04-17 10:27:17 -07:00
Jae Kwon 9dd37c6bc4 ... 2015-04-16 18:35:27 -07:00
Jae Kwon f641558115 Debora stop will kill. 2015-04-16 18:21:19 -07:00
Jae Kwon 22fdb6ca2f ~/.tendermint -> .tendermint 2015-04-16 16:35:51 -07:00
Jae Kwon 4c2e57437b rename barak log out 2015-04-16 14:41:20 -07:00
Jae Kwon 40dc09701a "status" command, we track pids on processes 2015-04-16 14:10:20 -07:00
Jae Kwon 372cfb509d Fixed --wait 2015-04-16 10:54:07 -07:00
Jae Kwon 5b9dbddc7b Allow trampling stopped processes 2015-04-16 10:13:50 -07:00
Jae Kwon 9ec6258ed0 Run process 2015-04-16 09:46:35 -07:00
Jae Kwon adccd8f878 fixed global flags 2015-04-15 23:41:13 -07:00
Jae Kwon df1d46d04d Errorf -> fmt.Errorf 2015-04-15 21:49:14 -07:00
Jae Kwon 58bcad3ea3 Added debora cli 2015-04-15 20:22:03 -07:00
Jae Kwon 618cd18f8b refactored debora/barak. about to add cli for debora 2015-04-15 14:49:21 -07:00
Jae Kwon e5d34befde Remote TypeByte() 2015-04-14 15:57:16 -07:00
Jae Kwon dcdf74ccc2 refactoring barak 2015-04-14 12:27:32 -07:00
Jae Kwon 89e05168d5 Begin writing debora 2015-04-14 04:14:18 -07:00
Jae Kwon bcfe33f15c rename debora -> barak 2015-04-14 01:14:55 -07:00
Jae Kwon 0ffbff108f Complete validation for debora 2015-04-13 13:14:37 -07:00