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 Object
AUTO_RESTORE_DEFAULT_STATE_LOCK
static Object
CMH_LOCK
-
Constructor Summary
Constructors Constructor Description ChainManagerHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getMinerPKBySlot(int slot, ConcurrentSkipListMap<String,ConcurrentSkipListSet<Integer>> currentEpochSlotDistribution)
static TransactionBox[]
getTransactions(BlockBox bb)
protected static BlockValidityBean
loadBlockZero(String block)
DON'T USE FOR NON ZERO BLOCKprotected static void
loadKWSBByTKMCSBS(KeyWriterGlobalStatus newKWGS)
protected static BlockValidityBean
loadNBlock(BlockBox blockBox)
static void
recoverState(int epoch, int slot, String blockHash)
static void
recoverStateAuto()
-
-
-
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)
-
-