node

package
v0.4.4-testnet Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProximaNode

type ProximaNode struct {
	*global.Global
	// contains filtered or unexported fields
}

func New

func New() *ProximaNode

func (*ProximaNode) CheckTransactionInLRB

func (p *ProximaNode) CheckTransactionInLRB(txid ledger.TransactionID, maxDepth int) (lrbid ledger.TransactionID, foundAtDepth int)

func (*ProximaNode) DurationSinceLastMessageFromPeer

func (p *ProximaNode) DurationSinceLastMessageFromPeer() time.Duration

func (*ProximaNode) EvidenceNumberOfTxDependencies

func (p *ProximaNode) EvidenceNumberOfTxDependencies(n int)

func (*ProximaNode) EvidencePastConeSize

func (p *ProximaNode) EvidencePastConeSize(sz int)

func (*ProximaNode) GetKnownLatestMilestonesJSONAble

func (p *ProximaNode) GetKnownLatestMilestonesJSONAble() map[string]tippool.LatestSequencerTipDataJSONAble

func (*ProximaNode) GetLatestReliableBranch

func (p *ProximaNode) GetLatestReliableBranch() (ret *multistate.BranchData)

func (*ProximaNode) GetNodeInfo

func (p *ProximaNode) GetNodeInfo() *global.NodeInfo

GetNodeInfo TODO not finished

func (*ProximaNode) GetOwnSequencerID

func (p *ProximaNode) GetOwnSequencerID() *ledger.ChainID

func (*ProximaNode) GetPeersInfo

func (p *ProximaNode) GetPeersInfo() *api.PeersInfo

func (*ProximaNode) GetSyncInfo

func (p *ProximaNode) GetSyncInfo() *api.SyncInfo

GetSyncInfo TODO not finished

func (*ProximaNode) LatestReliableState

func (p *ProximaNode) LatestReliableState() (multistate.SugaredStateReader, error)

func (*ProximaNode) OnTransaction

func (p *ProximaNode) OnTransaction(fun func(tx *transaction.Transaction) bool)

func (*ProximaNode) PullFromNPeers

func (p *ProximaNode) PullFromNPeers(nPeers int, txid *ledger.TransactionID) int

func (*ProximaNode) SelfPeerID

func (p *ProximaNode) SelfPeerID() peer.ID

func (*ProximaNode) SnapshotBranchID

func (p *ProximaNode) SnapshotBranchID() *ledger.TransactionID

func (*ProximaNode) Start

func (p *ProximaNode) Start()

Start starts the node

func (*ProximaNode) StateStore

func (p *ProximaNode) StateStore() multistate.StateStore

func (*ProximaNode) SubmitTxBytesFromAPI

func (p *ProximaNode) SubmitTxBytesFromAPI(txBytes []byte)

func (*ProximaNode) SubmitTxBytesFromInflator

func (p *ProximaNode) SubmitTxBytesFromInflator(txBytes []byte)

func (*ProximaNode) TxBytesStore

func (p *ProximaNode) TxBytesStore() global.TxBytesStore

func (*ProximaNode) WaitAllDBClosed

func (p *ProximaNode) WaitAllDBClosed()

WaitAllDBClosed ensuring databases has been closed

func (*ProximaNode) WaitAllWorkProcessesToStop

func (p *ProximaNode) WaitAllWorkProcessesToStop()

WaitAllWorkProcessesToStop wait everything to stop before closing databases

Jump to

Keyboard shortcuts

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