Documentation ¶
Index ¶
- func PublishBlockEvents(blockApplied *blockApplied, events *Events, log *logger.Logger)
- type BlockWithTrieRoot
- type Events
- type ISCEvent
- type ISCEventType
- type Publisher
- func (p *Publisher) AccessNodesUpdated(chainID isc.ChainID, accessNodes []*cryptolib.PublicKey)
- func (p *Publisher) BlockApplied(chainID isc.ChainID, block state.Block)
- func (p *Publisher) Run(ctx context.Context)
- func (p *Publisher) ServerNodesUpdated(chainID isc.ChainID, serverNodes []*cryptolib.PublicKey)
- type ReceiptWithError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublishBlockEvents ¶ added in v1.0.3
PublishBlockEvents extracts the events from a block, its returns a chan of ISCEventType, so they can be filtered
Types ¶
type BlockWithTrieRoot ¶ added in v1.0.3
type ISCEvent ¶ added in v1.0.3
type ISCEventType ¶ added in v1.0.3
type ISCEventType string
const ( ISCEventKindNewBlock ISCEventType = "new_block" ISCEventKindReceipt ISCEventType = "receipt" // issuer will be the request sender ISCEventKindBlockEvents ISCEventType = "block_events" ISCEventIssuerVM ISCEventType = "vm" )
type Publisher ¶ added in v1.0.3
type Publisher struct { Events *Events // contains filtered or unexported fields }
func (*Publisher) AccessNodesUpdated ¶ added in v1.0.3
Implements the chain.ChainListener interface. NOTE: Do not block the caller!
func (*Publisher) BlockApplied ¶ added in v1.0.3
Implements the chain.ChainListener interface. NOTE: Do not block the caller!
Click to show internal directories.
Click to hide internal directories.