Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ForkDetected = &Feed{} // Found a block that indicates fork. NewChainHead = &FeedOf[*types.Block]{} // Chain switched to a new head block. NewMinedBlock = &FeedOf[*types.Block]{} // A new block is mined into current chain NewNetworkBlock = &FeedOf[BlockWithTd]{} // A new block recieved from network NewNetworkTx = &FeedOf[types.Tx]{} NewTx = &FeedOf[types.Tx]{} SyncStarted = &Feed{} SyncFinished = &Feed{} )
Functions ¶
This section is empty.
Types ¶
type FeedOf ¶
type FeedOf[T any] struct { // contains filtered or unexported fields }
Event feed with data of type T.
Wrapper of go-ethereum/event.FeedOf that provides easier Subscribe and Unsubscribe calls
type Subscription ¶
type Subscription[T any] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.