Class ChainManager
- java.lang.Object
-
- com.h2tcoin.takamakachain.support.ChainManager
-
public class ChainManager extends Object
- Author:
- Giovanni Antino
-
-
Field Summary
Fields Modifier and Type Field Description static Object
BLOCK_LOAD_LOCK
-
Constructor Summary
Constructors Constructor Description ChainManager()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
createFirstBlockInternal(KeyWriterGlobalStatus previousKWGS, TransactionBox[] currentTransactionsToPush)
static String
createFirstBlockInternalTest(KeyWriterGlobalStatus previousKWGS, TransactionBox[] currentTransactionsToPush, Date bootstrapDate)
static String[]
getEmptySlotIDS(String previousNonEmptyID, String currentNonEmptyID)
static void
gotToNextAndPersist(KeyWriterGlobalStatus previousKWGS, TransactionBox[] currentTransactionsToPush)
Deprecated.this function does not create the block, test only function for local fast simulationsstatic BlockValidityBean
gotToNextAndPersistWithBlock(KeyWriterGlobalStatus previousKWGS, TransactionBox[] currentTransactionsToPush)
static BlockValidityBean
gotToNextAndPersistWithBlockTest(KeyWriterGlobalStatus none, TransactionBox[] currentTransactionsToPush, Date simCurrentTime)
static KeyWriterGlobalStatus
initEmptyChain(TransactionBox[] transactions)
static void
loadBlock(BlockBox bb)
static void
loadBlockInChain(String blockJson)
static void
loadChainFromBlock()
static void
restartStoppedChain()
-
-
-
Field Detail
-
BLOCK_LOAD_LOCK
public static final Object BLOCK_LOAD_LOCK
-
-
Method Detail
-
initEmptyChain
public static KeyWriterGlobalStatus initEmptyChain(TransactionBox[] transactions)
-
gotToNextAndPersist
public static void gotToNextAndPersist(KeyWriterGlobalStatus previousKWGS, TransactionBox[] currentTransactionsToPush)
Deprecated.this function does not create the block, test only function for local fast simulations- Parameters:
previousKWGS
-currentTransactionsToPush
-
-
gotToNextAndPersistWithBlock
public static BlockValidityBean gotToNextAndPersistWithBlock(KeyWriterGlobalStatus previousKWGS, TransactionBox[] currentTransactionsToPush)
-
gotToNextAndPersistWithBlockTest
public static BlockValidityBean gotToNextAndPersistWithBlockTest(KeyWriterGlobalStatus none, TransactionBox[] currentTransactionsToPush, Date simCurrentTime)
-
loadChainFromBlock
public static void loadChainFromBlock()
-
loadBlock
public static void loadBlock(BlockBox bb)
-
loadBlockInChain
public static void loadBlockInChain(String blockJson)
-
restartStoppedChain
public static void restartStoppedChain()
-
createFirstBlockInternal
public static String createFirstBlockInternal(KeyWriterGlobalStatus previousKWGS, TransactionBox[] currentTransactionsToPush)
-
createFirstBlockInternalTest
public static String createFirstBlockInternalTest(KeyWriterGlobalStatus previousKWGS, TransactionBox[] currentTransactionsToPush, Date bootstrapDate)
-
-