tendermint/privval
Hendrik Hofstadt f60713bca8 privval: Add IPCPV and fix SocketPV (#2568)
Ref: #2563

I added IPC as an unencrypted alternative to SocketPV.

Besides I fixed the following aspects of SocketPV:

Added locking since we are operating on a single socket
The connection deadline is extended every time a successful packet exchange happens; otherwise the connection would always die permanently x seconds after the connection was established.
Added a ping/heartbeat mechanism to keep the connection alive; native TCP keepalives do not work in this use-case


* Extend the SecureConn socket to extend its deadline
* Add locking & ping/heartbeat packets to SocketPV
* Implement IPC PV and abstract socket signing
* Refactored IPC and SocketPV
* Implement @melekes comments
* Fixes to rebase
2018-10-17 10:26:14 +02:00
..
ipc.go privval: Add IPCPV and fix SocketPV (#2568) 2018-10-17 10:26:14 +02:00
ipc_server.go privval: Add IPCPV and fix SocketPV (#2568) 2018-10-17 10:26:14 +02:00
ipc_test.go privval: Add IPCPV and fix SocketPV (#2568) 2018-10-17 10:26:14 +02:00
priv_validator.go [R4R] Fixed sized and reordered fields for Vote/Proposal/Heartbeat SignBytes (#2598) 2018-10-12 19:21:46 -04:00
priv_validator_test.go [R4R] Fixed sized and reordered fields for Vote/Proposal/Heartbeat SignBytes (#2598) 2018-10-12 19:21:46 -04:00
remote_signer.go privval: Add IPCPV and fix SocketPV (#2568) 2018-10-17 10:26:14 +02:00
tcp.go privval: Add IPCPV and fix SocketPV (#2568) 2018-10-17 10:26:14 +02:00
tcp_server.go privval: Add IPCPV and fix SocketPV (#2568) 2018-10-17 10:26:14 +02:00
tcp_socket.go privval: Add IPCPV and fix SocketPV (#2568) 2018-10-17 10:26:14 +02:00
tcp_socket_test.go privval: Add IPCPV and fix SocketPV (#2568) 2018-10-17 10:26:14 +02:00
tcp_test.go privval: Add IPCPV and fix SocketPV (#2568) 2018-10-17 10:26:14 +02:00
wire.go privval: Add IPCPV and fix SocketPV (#2568) 2018-10-17 10:26:14 +02:00