Uses of Class
com.exonum.binding.core.blockchain.Block
| Package | Description |
|---|---|
| com.exonum.binding.core.blockchain | |
| com.exonum.binding.core.blockchain.serialization | |
| com.exonum.binding.testkit |
-
Uses of Block in com.exonum.binding.core.blockchain
Methods in com.exonum.binding.core.blockchain that return Block Modifier and Type Method Description BlockBlock.Builder. build()Creates a new block with the set arguments.BlockBlockchain. getBlock(long height)Returns the block at the given height.BlockBlockchain. getLastBlock()Returns the latest committed block.Methods in com.exonum.binding.core.blockchain that return types with arguments of type Block Modifier and Type Method Description Optional<Block>Blockchain. findBlock(HashCode blockHash)Returns a block object for given block hash.MapIndex<HashCode,Block>Blockchain. getBlocks()Returns a map that stores a block object for every block hash.static com.google.gson.TypeAdapter<Block>Block. typeAdapter(com.google.gson.Gson gson)Provides a Gson type adapter for this class.Methods in com.exonum.binding.core.blockchain with parameters of type Block Modifier and Type Method Description booleanBlockchain. containsBlock(Block block)Returns true if the blockchain contains exactly the same block as the passed value; false if it does not contain such block.ProofListIndexProxy<HashCode>Blockchain. getBlockTransactions(Block block)Returns a proof list of transaction hashes committed in the given block. -
Uses of Block in com.exonum.binding.core.blockchain.serialization
Methods in com.exonum.binding.core.blockchain.serialization that return Block Modifier and Type Method Description BlockBlockSerializer. fromBytes(byte[] binaryBlock)Methods in com.exonum.binding.core.blockchain.serialization with parameters of type Block Modifier and Type Method Description byte[]BlockSerializer. toBytes(Block value) -
Uses of Block in com.exonum.binding.testkit
Methods in com.exonum.binding.testkit that return Block Modifier and Type Method Description BlockTestKit. createBlock()Creates a block with all in-pool transactions.BlockTestKit. createBlockWithTransactions(TransactionMessage... transactions)Creates a block with the given transaction(s).BlockTestKit. createBlockWithTransactions(Iterable<TransactionMessage> transactions)Creates a block with the given transactions.