Documentation ¶
Index ¶
- Constants
- Variables
- func PublishBlockEvents(blockApplied *publisherBlockApplied, publish func(*ISCEvent), ...)
- type ISCEvent
- 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)
Constants ¶
View Source
const ( ISCEventKindNewBlock = "new_block" ISCEventKindReceipt = "receipt" // issuer will be the request sender ISCEventKindSmartContract = "contract" )
View Source
const ISCEventIssuerVM = "vm"
Variables ¶
Functions ¶
func PublishBlockEvents ¶ added in v1.0.3
func PublishBlockEvents(blockApplied *publisherBlockApplied, publish func(*ISCEvent), log *logger.Logger)
PublishBlockEvents extracts the events from a block, its returns a chan of ISCEvents so they can be filtered
Types ¶
type ISCEvent ¶ added in v1.0.3
type Publisher ¶ added in v1.0.3
type Publisher struct {
// contains filtered or unexported fields
}
func NewPublisher ¶
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.