Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type BlocksForNumber ¶
type CanonicalChain ¶
type CanonicalChain struct { NetworkId uint64 ChainId uint64 // contains filtered or unexported fields }
func NewCanonicalChain ¶
func NewCanonicalChain( networkId uint64, chainId uint64, updates <-chan natsutil.KeyValueEntry[eth.ClientStatus], maxDistanceFromHead int, ) (*CanonicalChain, error)
func (*CanonicalChain) AddListener ¶
func (cc *CanonicalChain) AddListener(ch chan<- *CanonicalChain)
func (*CanonicalChain) BlockByHash ¶
func (cc *CanonicalChain) BlockByHash(hash string) (*Block, bool)
func (*CanonicalChain) Close ¶
func (cc *CanonicalChain) Close()
func (*CanonicalChain) Head ¶
func (cc *CanonicalChain) Head() *Block
func (*CanonicalChain) Start ¶
func (cc *CanonicalChain) Start()
func (*CanonicalChain) String ¶
func (cc *CanonicalChain) String() string
Click to show internal directories.
Click to hide internal directories.