5078 Commits

Author SHA1 Message Date
Ethan Frey
b4fd6e876e Copy certifiers from light-client 2017-10-25 16:13:04 +02:00
Ethan Buchman
775e100d2c Merge pull request #783 from tendermint/782-tendermint-invalid-command-panics
fix panic: failed to determine gopath: exec: "go"
2017-10-25 08:50:16 -04:00
Silas Davis
4cb02d0bf2
Exploit the fact the BaseService's closed Quit channel will keep emitting quit signals to close both readRoutine and writeRoutine 2017-10-25 10:19:18 +01:00
Anton Kaliaev
ae538337ba
fix panic: failed to determine gopath: exec: "go" (Refs #782)
```
-bash-4.2$ tendermint show_validators
panic: failed to determine gopath: exec: "go": executable file not found in $PATH

goroutine 1 [running]:
github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common.gopath(0xc4200632c0, 0x18)
	/var/lib/jenkins/workspace/03.Build.Package/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common/os.go:26 +0x1b5
github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common.init()
	/var/lib/jenkins/workspace/03.Build.Package/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/common/os.go:17 +0x13c
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire.init()
	/var/lib/jenkins/workspace/03.Build.Package/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire/wire.go:165 +0x50
github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire/data.init()
	/var/lib/jenkins/workspace/03.Build.Package/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/go-wire/data/wrapper.go:89 +0x50
github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/cli.init()
	/var/lib/jenkins/workspace/03.Build.Package/go/src/github.com/tendermint/tendermint/vendor/github.com/tendermint/tmlibs/cli/setup.go:190 +0x76
main.init()
	/var/lib/jenkins/workspace/03.Build.Package/go/src/github.com/tendermint/tendermint/cmd/tendermint/main.go:42 +0x49```

An error message instead would be nice.
```

Now GoPath() is a function instead of a variable.
2017-10-25 11:19:53 +04:00
Ethan Buchman
62a7beec21 Merge pull request #780 from ericdmann/769-error-msg-while-testnet-sync
Change log level to Info when proposal block hashing fails
2017-10-24 23:27:20 -04:00
Eric Mann
45e18a1832 Change log level to Info when proposal block hashing fails due to partially complete block 2017-10-24 14:13:35 -07:00
Silas Davis
f6adddb4a8
Replace ResultsCh with ResponsesCh 2017-10-24 17:45:13 +01:00
Ethan Buchman
38fc351532 Merge pull request #765 from tendermint/762-blockchain-reactor-timeout
blockchain reactor timeout
2017-10-24 09:13:26 -04:00
Silas Davis
01be6fa309
Fix WSClient blocking in the readRoutine after Stop() as it tries to write to ResultsCh 2017-10-24 13:31:24 +01:00
Anton Kaliaev
e06bbaf303
refactor TestNoBlockMessageResponse to eliminate a race condition 2017-10-24 15:32:01 +04:00
Ethan Frey
dfc4cdd2d7 Parameterize and lower bcrypt cost 2017-10-24 12:19:45 +02:00
Ethan Frey
0a5b1d979a Merge pull request #37 from tendermint/nano
Nano Support
2017-10-24 12:18:45 +02:00
Ethan Frey
0219ba2a63 Fix bug introduced by metalinting... 2017-10-24 12:14:20 +02:00
Ethan Frey
69a7b389b8 Removed keys/server as it is now in cosmos-sdk 2017-10-24 11:59:44 +02:00
Ethan Frey
6f6bbf718e Fix metalinter complaints 2017-10-24 11:56:37 +02:00
Ethan Frey
2d04544088 Addressed Buckys PR review comments 2017-10-24 11:38:06 +02:00
Ethan Frey
4a2c63f5e1 Update ledger names to specify ed25519 2017-10-24 11:38:06 +02:00
Ethan Frey
9601e48ab4 Improve error message 2017-10-24 11:38:06 +02:00
Ethan Frey
61d1bdb5ed Test error handling, load without ledger 2017-10-24 11:38:06 +02:00
Ethan Frey
9afceb7ee8 ledger pubkey serializes properly, better load checks 2017-10-24 11:38:06 +02:00
Ethan Frey
2490952515 nano validates key on load 2017-10-24 11:38:06 +02:00
Ethan Frey
bce88a20df Enable privkey validity checking on load 2017-10-24 11:38:06 +02:00
Ethan Frey
1b8d52bb82 Rename NameLedger to NameLedgerEd25519 2017-10-24 11:38:06 +02:00
Ethan Frey
ae078ee915 Generate/recover can return error, not panic on ledger 2017-10-24 11:38:06 +02:00
Ethan Frey
085d72d212 Cleanup nano calls, cannot run parallel test on one hardware device 2017-10-24 11:38:06 +02:00
Ethan Frey
91fccb8b14 Add test for cryptostore working with ledger 2017-10-24 11:38:06 +02:00
Ethan Frey
88475230c4 Re-enabled crypostore example usage 2017-10-24 11:38:06 +02:00
Ethan Frey
34b9309f24 Re-enable signing tests with cryptostore 2017-10-24 11:38:06 +02:00
Ethan Frey
8c98c4fdf4 Add nano ledger to key manager 2017-10-24 11:38:06 +02:00
Ethan Frey
0383feab49 Add and test serialization of ledger privkey 2017-10-24 11:38:06 +02:00
Ethan Frey
3edeb0cd45 Ledger caches pubkey, works with newer firmware 2017-10-24 11:38:06 +02:00
Ethan Frey
081f21af11 Add glide version for ledger drivers 2017-10-24 11:38:06 +02:00
Ethan Frey
008dba3af8 Test ledger calls 2017-10-24 11:38:06 +02:00
Ethan Frey
623bd803c2 write code to actually call ledger app 2017-10-24 11:38:06 +02:00
Ethan Frey
265e261c63 Add more test cases from running the ledger 2017-10-24 11:38:06 +02:00
Ethan Frey
7c5a10a7d4 Add tests for pub/priv key validation 2017-10-24 11:38:06 +02:00
Ethan Frey
06d74b24dd Wrote PrivKey/PubKey for ledger 2017-10-24 11:38:06 +02:00
Ethan Frey
74878ee313 Update code to work with current nano implementation 2017-10-24 11:38:06 +02:00
Ethan Frey
8220d59178 Work on using returned bytes as crypto keys 2017-10-24 11:38:06 +02:00
Ethan Frey
0781c12ede Message encoding for nano 2017-10-24 11:38:06 +02:00
Anton Kaliaev
bb7b152af5
write docs for cutWALUntil and wal2json binaries 2017-10-24 13:25:47 +04:00
Emmanuel Odeke
5504920ba3
rpc/lib/client: add jitter for exponential backoff of WSClient
Fixes https://github.com/tendermint/tendermint/issues/751.

Adds jitter to our exponential backoff to mitigate a self DDOS
vector. The jitter is a randomly picked percentage of a second
whose purpose is to ensure that each exponential backoff retry
occurs within (1<<attempts) == 2**attempts, but with the delay
each client will have a random buffer time before it tries to
reconnect instead of all at once reconnections that might even
bring back the previous conditions that might have caused the
dial to the WSServer to have failed e.g
* Network outage
* File descriptor exhaustion
* False positives from firewalls
etc
2017-10-24 02:00:20 -07:00
Anton Kaliaev
c74a359c46
fixes per Bucky's review 2017-10-24 12:14:21 +04:00
Zach Ramsay
ee9dc6ce59 docs: fixup abci guide 2017-10-23 20:56:49 -04:00
Zach Ramsay
4479e95709 console: fix tests 2017-10-23 19:54:38 -04:00
Zach Ramsay
62e8ec34d1 fix comment, #723 2017-10-23 19:51:09 -04:00
Matt Bell
6a5254c475 Added local blockchain sync benchmark script 2017-10-23 19:46:57 -04:00
Ethan Buchman
2802a06a08 blockchain/store: comment about panics 2017-10-23 19:46:14 -04:00
Zach Ramsay
36de70be10 console: fix output, closes #93 2017-10-23 19:35:02 -04:00
Ethan Buchman
a6e6b58c6b Merge pull request #41 from tendermint/metalinter
add metalinter to Makefile & apply some fixes
2017-10-23 19:32:07 -04:00