Package com.h2tcoin.takamakachain.block
Class BlockBox
- java.lang.Object
-
- com.h2tcoin.takamakachain.block.BlockBox
-
- All Implemented Interfaces:
Serializable
,Comparable<BlockBox>
public class BlockBox extends Object implements Serializable, Comparable<BlockBox>
- Author:
- iris.dimni
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BlockBox()
-
Method Summary
-
-
-
Method Detail
-
getForwardKeys
public ConcurrentSkipListMap<String,String> getForwardKeys()
-
setForwardKeys
protected void setForwardKeys(ConcurrentSkipListMap<String,String> forwardKeys)
-
getCoinbase
public TransactionBox getCoinbase()
-
setCoinbase
protected void setCoinbase(TransactionBox coinbase)
-
getBlockHash
public TransactionBox getBlockHash()
-
setBlockHash
protected void setBlockHash(TransactionBox blockHash)
-
getPreviousBlock
public TransactionBox getPreviousBlock()
-
setPreviousBlock
protected void setPreviousBlock(TransactionBox previousBlock)
-
date
public Date date()
-
epoch
public int epoch()
-
slot
public int slot()
-
hash
public String hash()
- Returns:
- hash of the current block
-
getSingleInclusionBlockHash
public String getSingleInclusionBlockHash()
-
setSingleInclusionBlockHash
protected void setSingleInclusionBlockHash(String singleInclusionBlockHash)
-
getTransactionJson
public String getTransactionJson()
-
setTransactionJson
protected void setTransactionJson(String transactionJson)
-
getTb
public TransactionBean getTb()
-
setTb
protected void setTb(TransactionBean tb)
-
getIbb
public InternalBlockBean getIbb()
-
setIbb
protected void setIbb(InternalBlockBean ibb)
-
isValid
public boolean isValid()
-
setValid
protected void setValid(boolean valid)
-
compareTo
public int compareTo(BlockBox arg0)
- Specified by:
compareTo
in interfaceComparable<BlockBox>
-
-