chainsync

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainsyncClientState

type ChainsyncClientState struct {
	Cursor               ocommon.Point
	ChainIter            *chain.ChainIterator
	NeedsInitialRollback bool
}

type State

type State struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewState

func NewState(
	eventBus *event.EventBus,
	ledgerState *ledger.LedgerState,
) *State

func (*State) AddClient

func (s *State) AddClient(
	connId connection.ConnectionId,
	intersectPoint ocommon.Point,
) (*ChainsyncClientState, error)

func (*State) GetClientConnId

func (s *State) GetClientConnId() *ouroboros.ConnectionId

TODO: replace with handling of multiple chainsync clients (#385)

func (*State) RemoveClient

func (s *State) RemoveClient(connId connection.ConnectionId)

func (*State) RemoveClientConnId

func (s *State) RemoveClientConnId(connId ouroboros.ConnectionId)

TODO: replace with handling of multiple chainsync clients (#385)

func (*State) SetClientConnId

func (s *State) SetClientConnId(connId ouroboros.ConnectionId)

TODO: replace with handling of multiple chainsync clients (#385)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL