Class TkmCSBS


  • public class TkmCSBS
    extends Object
    Author:
    giovanni.antino@h2tcoin.com
    • Field Detail

      • CHAIN_STATE_LOCK

        public static final Object CHAIN_STATE_LOCK
      • DEFAULT_STATE_LOCK

        public static final Object DEFAULT_STATE_LOCK
    • Method Detail

      • goToNextStatus

        public void goToNextStatus​(ESBean esb,
                                   boolean skip)
      • goToNextStatusTest

        public void goToNextStatusTest​(ESBean esb,
                                       boolean skip,
                                       Date jumpDate)
      • setEpoch

        public void setEpoch​(int epoch)
      • setSlot

        public void setSlot​(int slot)
      • goToNextStatusTest

        public void goToNextStatusTest​(int epoch,
                                       int slot,
                                       boolean skip,
                                       Date bootstrapDate)
      • updateOTR

        public void updateOTR()
        updates the state of the blockchain when the slot is not skipped
      • getPreviousBlockHash

        public String getPreviousBlockHash()
      • getPreviousEpoch

        public int getPreviousEpoch()
      • getPreviousSlot

        public int getPreviousSlot()
      • getPreviousDatabaseName

        public String getPreviousDatabaseName()
      • getPreviousPreviousBlockHash

        public String getPreviousPreviousBlockHash()
      • getPreviousPreviousEpoch

        public int getPreviousPreviousEpoch()
      • getPreviousPreviousSlot

        public int getPreviousPreviousSlot()
      • getPreviousPreviousDatabaseName

        public String getPreviousPreviousDatabaseName()
      • getPreviousPreviousPreviousBlockHash

        public String getPreviousPreviousPreviousBlockHash()
      • getPreviousPreviousPreviousEpoch

        public int getPreviousPreviousPreviousEpoch()
      • getPreviousPreviousPreviousSlot

        public int getPreviousPreviousPreviousSlot()
      • getPreviousPreviousPreviousDatabaseName

        public String getPreviousPreviousPreviousDatabaseName()
      • getEpochSeed

        public String getEpochSeed​(int epoch)
      • setEpochSeed

        public void setEpochSeed​(String epochSeed)
      • getSlotTime

        public long getSlotTime()
      • getWorldInitTime

        public long getWorldInitTime()
      • getEpoch

        public int getEpoch()
      • getSlot

        public int getSlot()
      • isFirstBlock

        public boolean isFirstBlock()
      • isSkippedState

        public boolean isSkippedState()
      • getBlockHash

        public String getBlockHash()
      • setBlockHash

        public void setBlockHash​(String bH)
      • setStartDate

        public void setStartDate​(Date bootstrapDate)
      • setSeed

        public void setSeed​(String seed,
                            int epoch)
      • getDatabaseUIDD

        public String getDatabaseUIDD()
      • saveCSB

        public void saveCSB()
      • saveToDefault

        public void saveToDefault()
      • setSkippedState

        public void setSkippedState​(boolean sk)
      • setCurrentEpochWeight

        public void setCurrentEpochWeight​(BigInteger weight)
      • setChainWeight

        public void setChainWeight​(BigInteger weight)
      • getChainWeight

        public BigInteger getChainWeight()
      • getCurrentEpochWeight

        public BigInteger getCurrentEpochWeight()
      • setNextEpochSlotWeight

        public void setNextEpochSlotWeight​(BigInteger input)
      • shutdownState

        public static void shutdownState()