Documentation
¶
Overview ¶
NOTE: forcetypeassert is skipped for the mock because the test would fail if the returned value doesn't match the type.
Index ¶
- func MockOnion() [lnwire.OnionPacketSize]byte
- type MockChain
- func (m *MockChain) BackEnd() string
- func (m *MockChain) BlockStamp() (*waddrmgr.BlockStamp, error)
- func (m *MockChain) FilterBlocks(req *chain.FilterBlocksRequest) (*chain.FilterBlocksResponse, error)
- func (m *MockChain) GetBestBlock() (*chainhash.Hash, int32, error)
- func (m *MockChain) GetBlock(hash *chainhash.Hash) (*wire.MsgBlock, error)
- func (m *MockChain) GetBlockHash(height int64) (*chainhash.Hash, error)
- func (m *MockChain) GetBlockHeader(hash *chainhash.Hash) (*wire.BlockHeader, error)
- func (m *MockChain) IsCurrent() bool
- func (m *MockChain) Notifications() <-chan interface{}
- func (m *MockChain) NotifyBlocks() error
- func (m *MockChain) NotifyReceived(addrs []btcutil.Address) error
- func (m *MockChain) Rescan(startHash *chainhash.Hash, addrs []btcutil.Address, ...) error
- func (m *MockChain) SendRawTransaction(tx *wire.MsgTx, allowHighFees bool) (*chainhash.Hash, error)
- func (m *MockChain) Start() error
- func (m *MockChain) Stop()
- func (m *MockChain) TestMempoolAccept(txns []*wire.MsgTx, maxFeeRate float64) ([]*btcjson.TestMempoolAcceptResult, error)
- func (m *MockChain) WaitForShutdown()
- type MockClock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockOnion ¶
func MockOnion() [lnwire.OnionPacketSize]byte
MockOnion returns a mock onion payload.
Types ¶
type MockChain ¶
MockChain is a mock implementation of the Chain interface.
func (*MockChain) BlockStamp ¶
func (m *MockChain) BlockStamp() (*waddrmgr.BlockStamp, error)
func (*MockChain) FilterBlocks ¶
func (m *MockChain) FilterBlocks(req *chain.FilterBlocksRequest) ( *chain.FilterBlocksResponse, error)
func (*MockChain) GetBlockHash ¶
func (*MockChain) GetBlockHeader ¶
func (*MockChain) Notifications ¶
func (m *MockChain) Notifications() <-chan interface{}
func (*MockChain) NotifyBlocks ¶
func (*MockChain) NotifyReceived ¶
func (*MockChain) SendRawTransaction ¶
func (*MockChain) TestMempoolAccept ¶
func (*MockChain) WaitForShutdown ¶
func (m *MockChain) WaitForShutdown()
Click to show internal directories.
Click to hide internal directories.