Erik Grinaker
660e72a12f
Migrates the p2p connections to Protobuf. Supersedes #4800. gogoproto's `NewDelimitedReader()` uses an internal buffer, which makes it unsuitable for reading individual messages from a shared reader (since any remaining data in the buffer will be discarded). We therefore add a new `protoio` package with an unbuffered `NewDelimitedReader()`. Additionally, the `NewDelimitedWriter()` returns the number of bytes written, and we've added `MarshalDelimited()` and `UnmarshalDelimited()`, to ease migration of existing code. |
4 years ago | |
---|---|---|
.. | ||
testdata | p2p: Add test vectors for deriving secrets (#2120) | 6 years ago |
conn_go110.go | p2p: tmconn->conn and types->p2p | 7 years ago |
conn_notgo110.go | p2p: tmconn->conn and types->p2p | 7 years ago |
connection.go | p2p/conn: migrate to Protobuf (#4990) | 4 years ago |
connection_test.go | p2p/conn: migrate to Protobuf (#4990) | 4 years ago |
evil_secret_connection_test.go | p2p/conn: migrate to Protobuf (#4990) | 4 years ago |
secret_connection.go | p2p/conn: migrate to Protobuf (#4990) | 4 years ago |
secret_connection_test.go | p2p/conn: migrate to Protobuf (#4990) | 4 years ago |