Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { SendRawTransaction(tx *wire.MsgTx, allowHighFees bool) (*chainhash.Hash, error) Shutdown() GetTransaction(txHash *chainhash.Hash) (*btcjson.GetTransactionResult, error) }
Client defines the interface with only the functions we need.
type MockClient ¶
type MockClient struct{}
MockClient Bitcoin RPC client for testing
func (*MockClient) GetTransaction ¶
func (m *MockClient) GetTransaction(txHash *chainhash.Hash) (*btcjson.GetTransactionResult, error)
GetTransaction is a mock implementation that simulates different scenarios for confirmation
func (*MockClient) SendRawTransaction ¶
SendRawTransaction is a mock implementation that simulates sending a raw transaction.
func (*MockClient) Shutdown ¶
func (m *MockClient) Shutdown()
Shutdown is a mock implementation that is used in tests.
Click to show internal directories.
Click to hide internal directories.