Browse Source

Add RemoteIP to test implementation

pull/1520/head
Alexander Simmerl 7 years ago
parent
commit
7b02b5b66b
No known key found for this signature in database GPG Key ID: 4694E95C9CC61BDA
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      blockchain/reactor_test.go

+ 2
- 0
blockchain/reactor_test.go 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} }

Loading…
Cancel
Save