Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForBlockConfirmations ¶
func WaitForBlockConfirmations( blockHeightWaiter BlockHeightWaiter, startBlockNumber uint64, blockConfirmations uint64, stateCheck func() (bool, error), ) (bool, error)
WaitForBlockConfirmations ensures that after receiving specific number of block confirmations the state of the chain is actually as expected. It waits for predefined number of blocks since the start block number provided. After the required block number is reached it performs a check of the chain state with a provided function returning a boolean value.
Types ¶
type BlockHeightWaiter ¶
BlockHeightWaiter provides the ability to wait for a given block height.
Click to show internal directories.
Click to hide internal directories.