chainsync

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 6 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            *state.ChainIterator
	NeedsInitialRollback bool
}

type State

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

func NewState

func NewState(
	eventBus *event.EventBus,
	ledgerState *state.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

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

func (*State) SetClientConnId

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

TODO: replace with handling of multiple chainsync clients

Jump to

Keyboard shortcuts

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