Class ChainManagerHelper
- java.lang.Object
-
- com.h2tcoin.takamakachain.support.ChainManagerHelper
-
public class ChainManagerHelper extends Object
- Author:
- Giovanni Antino
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectAUTO_RESTORE_DEFAULT_STATE_LOCKstatic ObjectCMH_LOCK
-
Constructor Summary
Constructors Constructor Description ChainManagerHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetMinerPKBySlot(int slot, ConcurrentSkipListMap<String,ConcurrentSkipListSet<Integer>> currentEpochSlotDistribution)static TransactionBox[]getTransactions(BlockBox bb)protected static BlockValidityBeanloadBlockZero(String block)DON'T USE FOR NON ZERO BLOCKprotected static voidloadKWSBByTKMCSBS(KeyWriterGlobalStatus newKWGS)protected static BlockValidityBeanloadNBlock(BlockBox blockBox)static voidrecoverState(int epoch, int slot, String blockHash)static voidrecoverStateAuto()
-
-
-
Method Detail
-
getTransactions
public static TransactionBox[] getTransactions(BlockBox bb)
-
loadNBlock
protected static BlockValidityBean loadNBlock(BlockBox blockBox)
-
loadBlockZero
protected static BlockValidityBean loadBlockZero(String block)
DON'T USE FOR NON ZERO BLOCK- Parameters:
block-
-
loadKWSBByTKMCSBS
protected static void loadKWSBByTKMCSBS(KeyWriterGlobalStatus newKWGS)
-
getMinerPKBySlot
public static String getMinerPKBySlot(int slot, ConcurrentSkipListMap<String,ConcurrentSkipListSet<Integer>> currentEpochSlotDistribution)
-
recoverStateAuto
public static void recoverStateAuto()
-
recoverState
public static void recoverState(int epoch, int slot, String blockHash)
-
-