Ethan Buchman
edb871f514
Merge pull request #1237 from tendermint/feature/priv_val_socket_client
privVal: Integrate socket client
7 years ago
Alexander Simmerl
74d3f7e1fd
Integrate private validator socket client
Following ADDR 008 the node will connect to an external
process to handle signing requests. Operation of the external process is
left to the user.
* introduce alias for PrivValidator interface on socket client
* integrate socket client in node
* structure tests
* remove unnecessary flag
7 years ago
Ethan Buchman
ffd2483e67
Merge pull request #1204 from tendermint/feature/priv_val_sockets
Feature/priv val sockets
7 years ago
Alexander Simmerl
a14aab67de
Integrate PrivValidator socket server
7 years ago
Alexander Simmerl
106d804357
Correct config description
7 years ago
Alexander Simmerl
a1020307a0
Clean up flags
7 years ago
Alexander Simmerl
6c70b4ce05
Apply connection deadline consistently
7 years ago
Alexander Simmerl
2a292efb56
Return error for all PrivValidator methoods
As calls to the private validator can involve side-effects like network
communication it is desirable for all methods returning an error to not
break the control flow of the caller.
* adjust PrivValidator interface
7 years ago
Alexander Simmerl
82b1a34a36
Separate connect logic
* break out connect functionality out of OnStart
* introduce max retries
7 years ago
Ethan Buchman
8da2a6a147
types/priv_validator: fixes for latest p2p and cmn
7 years ago
Alexander Simmerl
7d71e702d8
Integrate privVal client with node secret
7 years ago
Alexander Simmerl
38d18ca11a
Harden tests
7 years ago
Alexander Simmerl
32d9563a15
Format and consolidate
7 years ago
Alexander Simmerl
18f7e52562
Use secret connection
7 years ago
Alexander Simmerl
fec541373d
Correct server protocol
7 years ago
Alexander Simmerl
ff600e9aa0
wip: check error of wire read
7 years ago
Alexander Simmerl
a49357b19e
wip: Avoid underscore in var name
7 years ago
Alexander Simmerl
4b997c29ee
wip: fix nil pointer deference
7 years ago
Alexander Simmerl
d321839669
wip: fix code block in ADR
7 years ago
Alexander Simmerl
c27fda09dd
wip: Comment types
* add comments to all public types
* fix comments to adhere to comment standards
7 years ago
Ethan Buchman
23eb84db35
wip: priv val via sockets
7 years ago
Ethan Buchman
bef91ea7fe
adr-008-priv-validator
7 years ago
Ethan Buchman
459633fb4c
types/priv_validator
7 years ago
Ethan Buchman
f1c8489270
Merge pull request #1201 from tendermint/1022-do-not-enforce-1/3-val-changes
do not enforce 1/3 validator power change
7 years ago
Ethan Buchman
2d10c8f15b
Merge pull request #1095 from tendermint/804-p2p-issues
[p2p] Pong Timeout
7 years ago
Anton Kaliaev
106cdb74e5
do not enforce 1/3 validator power change
leave it to the app
Refs #1022
7 years ago
Anton Kaliaev
22b038810a
do not block in recvRoutine
7 years ago
Anton Kaliaev
45750e1b29
fix race by sending signal instead of stopping pongTimer
7 years ago
Anton Kaliaev
26419fba28
refactor code plus add one more test
* extract stopPongTimer method
* TestMConnectionMultiplePings
7 years ago
Anton Kaliaev
ac0123d249
drain pongTimeoutCh and pongTimer's channel to prevent leaks
7 years ago
Anton Kaliaev
f4ff66de30
rewrite pong timer to use time.AfterFunc
7 years ago
Anton Kaliaev
747b73cb95
fix merge conflicts
7 years ago
Anton Kaliaev
161e100a24
close return channel when we're done
Benchmark results:
```
BenchmarkSwitchBroadcast-2 30000 71275 ns/op
--- BENCH: BenchmarkSwitchBroadcast-2
switch_test.go:339: success: 1, failure: 0
switch_test.go:339: success: 100, failure: 0
switch_test.go:339: success: 10000, failure: 0
switch_test.go:339: success: 30000, failure: 0
```
7 years ago
Anton Kaliaev
3ae738f453
increase timeouts
7 years ago
Anton Kaliaev
d14d4a2527
remove TryBroadcast
7 years ago
Anton Kaliaev
860da464df
remove weird concurrency testing
7 years ago
Anton Kaliaev
4e2000abfe
control order by sending msgs from one goroutine
7 years ago
Anton Kaliaev
5834a59816
read ping
7 years ago
Anton Kaliaev
b28b76ddf7
rename pingTimeout to pingInterval, pongTimer is now time.Timer
7 years ago
zbo14
91e4f4b786
ping/pong timeout in config
7 years ago
zbo14
9b554fb2c4
switch test modification
7 years ago
zbo14
f97ead4f5f
prep for merge
7 years ago
zbo14
5af22d6ee6
remove SwitchEventNewPeer, SwitchEventDonePeer
7 years ago
zbo14
1d16df6a92
add test, TrySend in broadcast
7 years ago
Ethan Buchman
e7bc946760
Merge pull request #1200 from tendermint/update-deps
Update tmlibs & protobuf deps
7 years ago
Ethan Buchman
cf1e1f5899
Merge pull request #1194 from tendermint/1177-semantics-of-currate-low-msg
improve "curRate too low" message
7 years ago
Anton Kaliaev
2f8372d629
update protobuf
7 years ago
Anton Kaliaev
d84e4effce
update tmlibs
7 years ago
Anton Kaliaev
0c1b91b762
revert back curRate != 0
7 years ago
Anton Kaliaev
c8990d06d9
remove curRate != 0
7 years ago