public class Block extends Object
| Constructor and Description |
|---|
Block(Proof p)
Constructor for the OmniBlock held in the given Proof.
|
Block(SkipBlock sb)
Instantiates a new OmniBlock given a skipblock.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<ClientTransaction> |
getAcceptedClientTransactions()
Returns only accepted ClientTransactions stored in the block.
|
Sha256id |
getClientTransactionHash() |
Sha256id |
getStateChangesHash() |
java.time.Instant |
getTimestamp() |
long |
getTimestampNano() |
Sha256id |
getTrieRoot() |
List<TxResult> |
getTxResults()
Accessor for the transactions and results in the block.
|
public Block(SkipBlock sb) throws CothorityCryptoException
sb - skipblock holding data for an OmniBLock.CothorityCryptoException - if there's a problem with the cryptographypublic Block(Proof p) throws CothorityCryptoException
p - the proof to parse to find the blockCothorityCryptoException - if there's a problem with the cryptographypublic Sha256id getTrieRoot() throws CothorityCryptoException
CothorityCryptoException - if there's a problem with the cryptographypublic Sha256id getClientTransactionHash() throws CothorityCryptoException
CothorityCryptoException - if there's a problem with the cryptographypublic Sha256id getStateChangesHash() throws CothorityCryptoException
CothorityCryptoException - if there's a problem with the cryptographypublic List<ClientTransaction> getAcceptedClientTransactions()
public long getTimestampNano()
public java.time.Instant getTimestamp()
public List<TxResult> getTxResults()
Copyright © 2018. All rights reserved.