 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type AlphabetState
- type Client
- type EpochState
- type EpochTimerReseter
- type NodeValidator
- type Params
- type Processor
- func (np *Processor) HandleNewEpochTick(ctx context.Context, ev event.Event)
- func (np *Processor) ListenerNotaryHandlers() []event.NotaryHandlerInfo
- func (np *Processor) ListenerNotaryParsers() []event.NotaryParserInfo
- func (np *Processor) ListenerNotificationHandlers() []event.NotificationHandlerInfo
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlphabetState ¶
AlphabetState is a callback interface for inner ring global state.
type Client ¶ added in v0.37.0
type Client interface {
	MorphNotaryInvoke(ctx context.Context, contract util.Uint160, fee fixedn.Fixed8, nonce uint32, vub *uint32, method string, args ...any) error
	ContractAddress() util.Uint160
	EpochDuration(ctx context.Context) (uint64, error)
	MorphTxHeight(h util.Uint256) (res uint32, err error)
	NetMap(ctx context.Context) (*netmap.NetMap, error)
	NewEpoch(ctx context.Context, epoch uint64) error
	MorphIsValidScript(script []byte, signers []transaction.Signer) (valid bool, err error)
	MorphNotarySignAndInvokeTX(mainTx *transaction.Transaction) error
}
    func NewNetmapClient ¶ added in v0.37.0
func NewNetmapClient(netmapClient *netmapclient.Client) Client
type EpochState ¶
type EpochState interface {
	SetEpochCounter(uint64)
	EpochCounter() uint64
	SetEpochDuration(uint64)
	EpochDuration() uint64
}
    EpochState is a callback interface for inner ring global state.
type EpochTimerReseter ¶
EpochTimerReseter is a callback interface for tickers component.
type NodeValidator ¶
type NodeValidator interface {
	// VerifyAndUpdate must verify and optionally update NodeInfo structure.
	//
	// Must return an error if NodeInfo input is invalid.
	// Must return an error if it is not possible to correctly
	// change the structure for sending to the network map.
	//
	// If no error occurs, the parameter must point to the
	// ready-made NodeInfo structure.
	VerifyAndUpdate(context.Context, *netmap.NodeInfo) error
}
    NodeValidator wraps basic method of checking the correctness of information about the node and its finalization for adding to the network map.
type Params ¶
type Params struct {
	Log              *logger.Logger
	Metrics          metrics.Register
	PoolSize         int
	NetmapClient     Client
	EpochTimer       EpochTimerReseter
	EpochState       EpochState
	AlphabetState    AlphabetState
	CleanupEnabled   bool
	CleanupThreshold uint64 // in epochs
	AlphabetSyncHandler  event.Handler
	NotaryDepositHandler event.Handler
	NodeValidator NodeValidator
	NodeStateSettings state.NetworkSettings
}
    Params of the processor constructor.
type Processor ¶
type Processor struct {
	// contains filtered or unexported fields
}
    Processor of events produced by network map contract and new epoch ticker, because it is related to contract.
func (*Processor) HandleNewEpochTick ¶
func (*Processor) ListenerNotaryHandlers ¶
func (np *Processor) ListenerNotaryHandlers() []event.NotaryHandlerInfo
ListenerNotaryHandlers for the 'event.Listener' event producer.
func (*Processor) ListenerNotaryParsers ¶
func (np *Processor) ListenerNotaryParsers() []event.NotaryParserInfo
ListenerNotaryParsers for the 'event.Listener' event producer.
func (*Processor) ListenerNotificationHandlers ¶
func (np *Processor) ListenerNotificationHandlers() []event.NotificationHandlerInfo
ListenerNotificationHandlers for the 'event.Listener' event producer.