mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-17 21:32:47 +01:00
lnmock: let MockChain also implement lnwallet.BlockChainIO
Note that a compile-time assertion was not added as this leads to an import cycle.
This commit is contained in:
parent
8f37699db3
commit
c354fd8f70
@ -74,6 +74,18 @@ func (m *MockChain) GetBlockHeader(hash *chainhash.Hash) (
|
||||
return args.Get(0).(*wire.BlockHeader), args.Error(1)
|
||||
}
|
||||
|
||||
func (m *MockChain) GetUtxo(op *wire.OutPoint, pkScript []byte,
|
||||
heightHint uint32, cancel <-chan struct{}) (*wire.TxOut, error) {
|
||||
|
||||
args := m.Called(op, pkScript, heightHint, cancel)
|
||||
|
||||
if args.Get(0) == nil {
|
||||
return nil, args.Error(1)
|
||||
}
|
||||
|
||||
return args.Get(0).(*wire.TxOut), args.Error(1)
|
||||
}
|
||||
|
||||
func (m *MockChain) IsCurrent() bool {
|
||||
args := m.Called()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user