Package com.exonum.binding.service
Interface BlockCommittedEvent
-
- All Known Implementing Classes:
BlockCommittedEventImpl
public interface BlockCommittedEvent
The blockchain state just after the corresponding block is committed. This structure is passed to theService.afterCommit(BlockCommittedEvent)
method and is used for the interaction between service business logic and the blockchain state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getHeight()
Returns the current blockchain height, which is the height of the last committed block.Snapshot
getSnapshot()
Returns the current database snapshot.java.util.OptionalInt
getValidatorId()
If this node is a validator, returns its identifier.
-