p2p: Restore OriginalAddr (#2668)

* p2p: bring back OriginalAddr

* p2p: set OriginalAddr

* update changelog
This commit is contained in:
Ethan Buchman
2018-10-18 18:26:32 -04:00
committed by GitHub
parent e798766a27
commit 746d137f86
10 changed files with 65 additions and 17 deletions

View File

@ -206,3 +206,4 @@ func (tp *bcrTestPeer) IsPersistent() bool { return true }
func (tp *bcrTestPeer) Get(s string) interface{} { return s }
func (tp *bcrTestPeer) Set(string, interface{}) {}
func (tp *bcrTestPeer) RemoteIP() net.IP { return []byte{127, 0, 0, 1} }
func (tp *bcrTestPeer) OriginalAddr() *p2p.NetAddress { return nil }