From 7b02b5b66b436505ec680e882163804678ae0906 Mon Sep 17 00:00:00 2001 From: Alexander Simmerl Date: Mon, 21 May 2018 17:41:34 +0200 Subject: [PATCH] Add RemoteIP to test implementation --- blockchain/reactor_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blockchain/reactor_test.go b/blockchain/reactor_test.go index 63e3c72bb..49913c10e 100644 --- a/blockchain/reactor_test.go +++ b/blockchain/reactor_test.go @@ -1,6 +1,7 @@ package blockchain import ( + "net" "testing" cmn "github.com/tendermint/tmlibs/common" @@ -204,3 +205,4 @@ func (tp *bcrTestPeer) IsOutbound() bool { return false } 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} }