aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/protocol_test.go
Commit message (Collapse)AuthorAgeFilesLines
* p2p: integrate p2p/discoverFelix Lange2015-02-061-167/+0
| | | | | | | | | | | | Overview of changes: - ClientIdentity has been removed, use discover.NodeID - Server now requires a private key to be set (instead of public key) - Server performs the encryption handshake before launching Peer - Dial logic takes peers from discover table - Encryption handshake code has been cleaned up a bit - baseProtocol is gone because we don't exchange peers anymore - Some parts of baseProtocol have moved into Peer instead
* fix protocol to accomodate privkeyzelig2015-02-061-1/+10
|
* p2p: improve test for peers messageFelix Lange2015-01-061-21/+43
| | | | | The test now checks that the number of of addresses is correct and terminates cleanly.
* eth, p2p: remove EncodeMsg from p2p.MsgWriterFelix Lange2015-01-061-2/+2
| | | | | | | | | | | | ...and make it a top-level function instead. The original idea behind having EncodeMsg in the interface was that implementations might be able to encode RLP data to their underlying writer directly instead of buffering the encoded data. The encoder will buffer anyway, so that doesn't matter anymore. Given the recent problems with EncodeMsg (copy-pasted implementation bug) I'd rather implement once, correctly.
* Mergeobscuren2015-01-061-2/+80
|
* p2p: add test for base protocol disconnectFelix Lange2014-12-151-0/+58