Package com.privatechain.core.event
Class BlockchainEvent.BlockAddedEvent
java.lang.Object
com.privatechain.core.event.BlockchainEvent
com.privatechain.core.event.BlockchainEvent.BlockAddedEvent
- Enclosing class:
BlockchainEvent
Fired after a new block is successfully appended to the canonical chain.
Listeners receive this event after all validators and the storage write have completed, so the chain is already in its new state when the listener runs.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class com.privatechain.core.event.BlockchainEvent
BlockchainEvent.BlockAddedEvent, BlockchainEvent.ForkDetectedEvent, BlockchainEvent.PeerConnectedEvent, BlockchainEvent.PeerDisconnectedEvent, BlockchainEvent.TransactionSubmittedEvent -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.privatechain.core.event.BlockchainEvent
getOccurredAt
-
Constructor Details
-
BlockAddedEvent
Constructs aBlockAddedEvent.- Parameters:
block- the block that was added (non-null)- Throws:
NullPointerException- if block is null
-
-
Method Details