p2p: encode peerAddr.IP as RLP string

The spec says we should do that.
This commit is contained in:
Felix Lange 2015-01-04 00:13:44 +01:00 committed by zelig
parent 50c03756ca
commit 1869e5fd7a

View file

@ -46,7 +46,7 @@ func (d peerAddr) String() string {
} }
func (d *peerAddr) RlpData() interface{} { func (d *peerAddr) RlpData() interface{} {
return []interface{}{d.IP, d.Port, d.Pubkey} return []interface{}{string(d.IP), d.Port, d.Pubkey}
} }
// Peer represents a remote peer. // Peer represents a remote peer.