Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessBlock ¶
func ProcessBlock(ctx context.Context, client *ethclient.Client, number *big.Int, commChan chan<- CaughtTxs, lastSeenBlockChan chan<- uint64) bool
ProcessBlock - Fetches all txs present in mined block & passes those to pending pool pruning worker
func SubscribeHead ¶
func SubscribeHead(ctx context.Context, client *ethclient.Client, lastSeenBlock uint64, commChan chan<- CaughtTxs, lastSeenBlockChan chan<- uint64, healthChan chan struct{})
SubscribeHead - Subscribe to block headers & as soon as new block gets mined its txs are picked up & published on a go channel, which will be listened to by pending pool watcher, so that it can prune its state
Types ¶
Click to show internal directories.
Click to hide internal directories.