Skip to content

Commit

Permalink
Merge pull request #11 from libsv/feature/health
Browse files Browse the repository at this point in the history
Add IsHealthy function to interface
  • Loading branch information
boecklim authored Jan 24, 2024
2 parents 76f72a8 + b424686 commit cee7a46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Peer_Mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func (p *PeerMock) Network() wire.BitcoinNet {
return p.network
}

func (p *PeerMock) IsHealthy() bool {
return true
}

func (p *PeerMock) Connected() bool {
return true
}
Expand Down
1 change: 1 addition & 0 deletions interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type PeerI interface {
AnnounceBlock(blockHash *chainhash.Hash)
RequestBlock(blockHash *chainhash.Hash)
Network() wire.BitcoinNet
IsHealthy() bool
}

type PeerHandlerI interface {
Expand Down

0 comments on commit cee7a46

Please sign in to comment.