Add RemoteIP to test implementation

This commit is contained in:
Alexander Simmerl 2018-05-21 17:41:34 +02:00
parent 0cd92a4948
commit 7b02b5b66b
No known key found for this signature in database
GPG Key ID: 4694E95C9CC61BDA
1 changed files with 2 additions and 0 deletions

View File

@ -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} }