|
|
@ -157,7 +157,7 @@ func makeBlock(height int64, state sm.State) *types.Block { |
|
|
|
|
|
|
|
// The Test peer
|
|
|
|
type bcrTestPeer struct { |
|
|
|
*cmn.BaseService |
|
|
|
cmn.BaseService |
|
|
|
id p2p.ID |
|
|
|
ch chan interface{} |
|
|
|
} |
|
|
@ -169,7 +169,7 @@ func newbcrTestPeer(id p2p.ID) *bcrTestPeer { |
|
|
|
id: id, |
|
|
|
ch: make(chan interface{}, 2), |
|
|
|
} |
|
|
|
bcr.BaseService = cmn.NewBaseService(nil, "bcrTestPeer", bcr) |
|
|
|
bcr.BaseService = *cmn.NewBaseService(nil, "bcrTestPeer", bcr) |
|
|
|
return bcr |
|
|
|
} |
|
|
|
|
|
|
@ -196,4 +196,3 @@ 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) QuitChan() <-chan struct{} { return tp.Quit } |