Package com.h2tcoin.takamakachain.state
Class ChainStateBean
- java.lang.Object
-
- com.h2tcoin.takamakachain.state.ChainStateBean
-
- All Implemented Interfaces:
Serializable
public class ChainStateBean extends Object implements Serializable
- Author:
- giovanni.antino@h2tcoin.com
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChainStateBean()
-
Method Summary
-
-
-
Method Detail
-
getDeflated
public ChainStateBean getDeflated()
-
getInflated
public ChainStateBean getInflated()
-
getDeflatedInlated
public ChainStateBean getDeflatedInlated(boolean deflate)
- Parameters:
deflate
- true deflate, false inflate- Returns:
-
getProposedKeys
public ConcurrentSkipListMap<String,TkmProposedKey> getProposedKeys()
-
getPreviousEpoch
public int getPreviousEpoch()
-
setPreviousEpoch
protected void setPreviousEpoch(int previousEpoch)
-
getPreviousSlot
public int getPreviousSlot()
-
setPreviousSlot
protected void setPreviousSlot(int previousSlot)
-
getPreviousDatabaseName
public String getPreviousDatabaseName()
-
setPreviousDatabaseName
protected void setPreviousDatabaseName(String previousDatabaseName)
-
getPreviousBlockHash
public String getPreviousBlockHash()
-
setPreviousBlockHash
protected void setPreviousBlockHash(String previousBLockHash)
-
getPreviousPreviousEpoch
protected int getPreviousPreviousEpoch()
-
setPreviousPreviousEpoch
protected void setPreviousPreviousEpoch(int previousEpoch)
-
getPreviousPreviousSlot
protected int getPreviousPreviousSlot()
-
setPreviousPreviousSlot
protected void setPreviousPreviousSlot(int previousSlot)
-
getPreviousPreviousDatabaseName
protected String getPreviousPreviousDatabaseName()
-
setPreviousPreviousDatabaseName
protected void setPreviousPreviousDatabaseName(String previousDatabaseName)
-
getPreviousPreviousBlockHash
protected String getPreviousPreviousBlockHash()
-
setPreviousPreviousBlockHash
protected void setPreviousPreviousBlockHash(String previousBLockHash)
-
getPreviousPreviousPreviousEpoch
protected int getPreviousPreviousPreviousEpoch()
-
setPreviousPreviousPreviousEpoch
protected void setPreviousPreviousPreviousEpoch(int previousEpoch)
-
getPreviousPreviousPreviousSlot
protected int getPreviousPreviousPreviousSlot()
-
setPreviousPreviousPreviousSlot
protected void setPreviousPreviousPreviousSlot(int previousSlot)
-
getPreviousPreviousPreviousDatabaseName
protected String getPreviousPreviousPreviousDatabaseName()
-
setPreviousPreviousPreviousDatabaseName
protected void setPreviousPreviousPreviousDatabaseName(String previousDatabaseName)
-
getPreviousPreviousPreviousBlockHash
protected String getPreviousPreviousPreviousBlockHash()
-
setPreviousPreviousPreviousBlockHash
protected void setPreviousPreviousPreviousBlockHash(String previousBLockHash)
-
setProposedKeys
protected void setProposedKeys(ConcurrentSkipListMap<String,TkmProposedKey> proposedKeys)
-
getOneThirdRecordMap
public ConcurrentSkipListMap<Integer,OneThirdRecord> getOneThirdRecordMap()
-
setOneThirdRecordMap
public void setOneThirdRecordMap(ConcurrentSkipListMap<Integer,OneThirdRecord> oneThirdRecordMap)
-
getOperationalRecord
protected ConcurrentSkipListMap<Integer,MainRecordBean> getOperationalRecord()
key = epoch, value = MainRecordBean- Returns:
-
setOperationalRecord
protected void setOperationalRecord(ConcurrentSkipListMap<Integer,MainRecordBean> operationalRecord)
-
getChainWeight
protected BigInteger getChainWeight()
-
setChainWeight
protected void setChainWeight(BigInteger chainWeight)
-
setEpoch
protected void setEpoch(int epoch)
-
setSlot
protected void setSlot(int slot)
-
setBlockHash
protected void setBlockHash(String blockHash)
-
setDatabaseName
protected void setDatabaseName(String databaseName)
-
setFirstBlock
protected void setFirstBlock(boolean firstBlock)
-
setCurrentStateTime
protected void setCurrentStateTime(long currentStateTime)
-
setWorldInitTime
protected void setWorldInitTime(long worldInitTime)
-
setCurrentEpochSlotWeight
protected void setCurrentEpochSlotWeight(BigInteger currentEpochSlotWeight)
-
setNextEpochSlotWeight
protected void setNextEpochSlotWeight(BigInteger nextEpochSlotWeight)
-
setSkippedState
protected void setSkippedState(boolean skippedState)
-
setCurrentEpochSlotDistribution
protected void setCurrentEpochSlotDistribution(ConcurrentSkipListMap<String,ConcurrentSkipListSet<Integer>> currentEpochSlotDistribution)
-
getEpoch
public int getEpoch()
-
getSlot
public int getSlot()
-
getBlockHash
public String getBlockHash()
-
getDatabaseName
public String getDatabaseName()
-
isFirstBlock
public boolean isFirstBlock()
-
getCurrentStateTime
public long getCurrentStateTime()
-
getWorldInitTime
public long getWorldInitTime()
-
getCurrentEpochSlotWeight
public BigInteger getCurrentEpochSlotWeight()
-
getNextEpochSlotWeight
public BigInteger getNextEpochSlotWeight()
-
isSkippedState
public boolean isSkippedState()
-
getCurrentEpochSlotDistribution
public ConcurrentSkipListMap<String,ConcurrentSkipListSet<Integer>> getCurrentEpochSlotDistribution()
-
getNextEpochSlotDistribution
public ConcurrentSkipListMap<String,ConcurrentSkipListSet<Integer>> getNextEpochSlotDistribution()
-
setNextEpochSlotDistribution
public void setNextEpochSlotDistribution(ConcurrentSkipListMap<String,ConcurrentSkipListSet<Integer>> nextEpochSlotDistribution)
-
-