Class BlockAdded

  • All Implemented Interfaces:
    EventData

    public class BlockAdded
    extends java.lang.Object
    implements EventData
    The BlockAdded event is emitted whenever a new block is added to the blockchain and stored locally in the node.
    • Constructor Detail

      • BlockAdded

        public BlockAdded​(Digest blockHash,
                          Block<?,​?> block,
                          int nextEraGasPrice)
      • BlockAdded

        public BlockAdded()
    • Method Detail

      • getBlock

        public <T extends Block<?,​?>> T getBlock()
      • getBlockHash

        public Digest getBlockHash()
        A cryptographic hash identifying a `Block`
      • getNextEraGasPrice

        public int getNextEraGasPrice()
      • setBlockHash

        public void setBlockHash​(Digest blockHash)
        A cryptographic hash identifying a `Block`
      • setBlock

        public void setBlock​(Block<?,​?> block)
        A JSON-friendly representation of `Block`.
      • setNextEraGasPrice

        public void setNextEraGasPrice​(int nextEraGasPrice)