Author | SHA1 | Message | Date |
---|---|---|---|
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 |
6 years ago |
Zach Ramsay | 44dad6d70b |
Revert "detele everything"
This reverts commit
|
7 years ago |
Zach Ramsay | d02c5d1e30 | detele everything | 7 years ago |
Liamsi | d2c05bc5b9 |
Revert "delete everything" (includes everything non-go-crypto)
This reverts commit
|
7 years ago |
Liamsi | 96a3502126 | delete everything | 7 years ago |
Alexander Simmerl |
bf370d36c2
|
Extract priv_validator into first class package
This is a maintenance change to move the private validator package out of the types and to a top-level location. There is no good reason to keep it under the types and it will more clearly coommunicate where additions related to the privval belong. It leaves the interface and the mock in types for now as it would introduce circular dependency between privval and types, this should be resolved eventually. * mv priv_validator to privval pkg * use consistent `privval` as import Follow-up to #1255 |
7 years ago |
Jae Kwon | 34974e3932 | Make types use Amino; Refactor PrivValidator* to FilePV/SocketPV | 7 years ago |
Alexander Simmerl | 9b9022f8df |
privVal: Improve SocketClient network code (#1315)
Follow-up to feedback from #1286, this change simplifies the connection handling in the SocketClient and makes the communication via TCP more robust. It introduces the tcpTimeoutListener to encapsulate accept and i/o timeout handling as well as connection keep-alive, this type could likely be upgraded to handle more fine-grained tuning of the tcp stack (linger, nodelay, etc.) according to the properties we desire. The same methods should be applied to the RemoteSigner which will be overhauled when the priv_val_server is fleshed out. * require private key * simplify connect logic * break out conn upgrades to tcpTimeoutListener * extend test coverage and simplify component setup |
7 years ago |