| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract Block.Builder |
blockHash(com.exonum.binding.common.hash.HashCode hash)
Sets the hash of the block binary representation.
|
Block |
build()
Creates a new block with the set arguments.
|
abstract Block.Builder |
height(long height)
Sets the block height, which is the distance between the block and the genesis block,
which has zero height.
|
abstract Block.Builder |
numTransactions(int numTransactions)
Sets the number of transactions in this block.
|
abstract Block.Builder |
previousBlockHash(com.exonum.binding.common.hash.HashCode previousBlockHash)
Sets the hash of the previous block in the hash chain.
|
abstract Block.Builder |
proposerId(int proposerId)
Sets the identifier of the leader node which has proposed the block.
|
abstract Block.Builder |
stateHash(com.exonum.binding.common.hash.HashCode blockchainStateHash)
Sets the blockchain state hash at the moment this block was committed.
|
abstract Block.Builder |
txRootHash(com.exonum.binding.common.hash.HashCode txRootHash)
Sets the Merkle root hash of the collection holding all transactions in this block.
|
public abstract Block.Builder blockHash(com.exonum.binding.common.hash.HashCode hash)
public abstract Block.Builder proposerId(int proposerId)
public abstract Block.Builder height(long height)
public abstract Block.Builder numTransactions(int numTransactions)
public abstract Block.Builder previousBlockHash(com.exonum.binding.common.hash.HashCode previousBlockHash)
public abstract Block.Builder txRootHash(com.exonum.binding.common.hash.HashCode txRootHash)
Blockchain.getBlockTransactions(Block).public abstract Block.Builder stateHash(com.exonum.binding.common.hash.HashCode blockchainStateHash)
Schema.getStateHashes()public Block build()
IllegalStateException - if some of the arguments were not set or aren't validCopyright © 2019 Exonum. All rights reserved.