Uses of Class
com.privatechain.core.event.BlockchainEvent
Packages that use BlockchainEvent
Package
Description
Sealed event hierarchy and the asynchronous publish-subscribe event bus.
Transaction gossip and block broadcast — propagates newly submitted transactions
and mined blocks to connected peers (FR-NET-02, FR-NET-03).
-
Uses of BlockchainEvent in com.privatechain.core.event
Subclasses of BlockchainEvent in com.privatechain.core.eventModifier and TypeClassDescriptionstatic final classFired after a new block is successfully appended to the canonical chain.static final classFired when the node detects two competing valid blocks at the same chain height.static final classFired when a new peer successfully establishes a TCP connection to this node.static final classFired when a peer connection is closed, either gracefully or due to an error.static final classFired after a transaction successfully passes validation and enters the mempool.Methods in com.privatechain.core.event with parameters of type BlockchainEventModifier and TypeMethodDescriptionvoidBlockchainEventListener.onEvent(BlockchainEvent event) Called by theBlockchainEventBuswhen a blockchain event occurs.voidBlockchainEventBus.publish(BlockchainEvent event) Publishes an event to all currently registered listeners asynchronously. -
Uses of BlockchainEvent in com.privatechain.network.gossip
Methods in com.privatechain.network.gossip with parameters of type BlockchainEventModifier and TypeMethodDescriptionvoidBlockBroadcaster.onEvent(BlockchainEvent event) Reacts to blockchain events, broadcasting new blocks to all connected peers.voidGossipProtocol.onEvent(BlockchainEvent event) Reacts to blockchain events.