Documentation ¶
Index ¶
- func BtcLatestHeight(c *grpc.ClientConn) (uint64, error)
- func GenerateNEmptyHeaders(r *rand.Rand, tip *bbn.BTCHeaderBytes, n uint64) []bbn.BTCHeaderBytes
- func LatestHeight(c *grpc.ClientConn) (int64, error)
- func WaitBtcForHeight(c *grpc.ClientConn, h uint64) (uint64, error)
- func WaitForBtcHeightWithTimeout(c *grpc.ClientConn, h uint64, t time.Duration) (uint64, error)
- func WaitForHeight(c *grpc.ClientConn, h int64) (int64, error)
- func WaitForHeightWithTimeout(c *grpc.ClientConn, h int64, t time.Duration) (int64, error)
- func WaitForNextBlock(c *grpc.ClientConn) error
- func WaitForNextBtcBlock(c *grpc.ClientConn) error
- type TestTxSender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BtcLatestHeight ¶
func BtcLatestHeight(c *grpc.ClientConn) (uint64, error)
func GenerateNEmptyHeaders ¶
func GenerateNEmptyHeaders(r *rand.Rand, tip *bbn.BTCHeaderBytes, n uint64) []bbn.BTCHeaderBytes
func LatestHeight ¶
func LatestHeight(c *grpc.ClientConn) (int64, error)
func WaitBtcForHeight ¶
func WaitBtcForHeight(c *grpc.ClientConn, h uint64) (uint64, error)
func WaitForHeight ¶
func WaitForHeight(c *grpc.ClientConn, h int64) (int64, error)
func WaitForNextBlock ¶
func WaitForNextBlock(c *grpc.ClientConn) error
func WaitForNextBtcBlock ¶
func WaitForNextBtcBlock(c *grpc.ClientConn) error
Types ¶
type TestTxSender ¶
type TestTxSender struct { Conn *grpc.ClientConn // contains filtered or unexported fields }
func NewTestTxSender ¶
func NewTestTxSender( keyringPath string, genesisPath string, conn *grpc.ClientConn, ) (*TestTxSender, error)
func (*TestTxSender) GetBtcTip ¶
func (b *TestTxSender) GetBtcTip() *lightclient.BTCHeaderInfo
func (*TestTxSender) SendBtcHeadersTransaction ¶
func (b *TestTxSender) SendBtcHeadersTransaction(headers []bbn.BTCHeaderBytes) (*txservice.BroadcastTxResponse, error)
Click to show internal directories.
Click to hide internal directories.