Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateMgr ¶
type StateMgr interface { consGR.StateMgr // The StateMgr has to find a common ancestor for the prevAO and nextAO, then return // the state for Next ao and reject blocks in range (commonAO, prevAO]. The StateMgr // can determine relative positions of the corresponding blocks based on their state // indexes. ChainFetchStateDiff( ctx context.Context, prevAO, nextAO *isc.AliasOutputWithID, ) <-chan *smInputs.ChainFetchStateDiffResults // Invoked by the chain when a set of server (access⁻¹) nodes has changed. // These nodes should be used to perform block replication. ChainNodesUpdated(serverNodes, accessNodes, committeeNodes []*cryptolib.PublicKey) }
func New ¶
func New( ctx context.Context, chainID isc.ChainID, me *cryptolib.PublicKey, peerPubKeys []*cryptolib.PublicKey, net peering.NetworkProvider, wal smGPAUtils.BlockWAL, store state.Store, shutdownCoordinator *shutdown.Coordinator, log *logger.Logger, timersOpt ...smGPA.StateManagerTimers, ) (StateMgr, error)
Click to show internal directories.
Click to hide internal directories.