Package com.h2tcoin.takamakachain.state
Class StatePointerHelper
- java.lang.Object
-
- com.h2tcoin.takamakachain.state.StatePointerHelper
-
public class StatePointerHelper extends Object
- Author:
- giovanni.antino@h2tcoin.com
-
-
Constructor Summary
Constructors Constructor Description StatePointerHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Path
getStatePath(StatePointerBean spb)
static StatePointerBean
initStatePointer(int epoch, int slot, String blockHash)
build a pointer using epoch, slot and block hashstatic String
prettyPrint(StatePointerBean spb)
-
-
-
Method Detail
-
initStatePointer
public static StatePointerBean initStatePointer(int epoch, int slot, String blockHash) throws NoSuchAlgorithmException
build a pointer using epoch, slot and block hash- Parameters:
epoch
-slot
-blockHash
-- Returns:
- Throws:
NoSuchAlgorithmException
-
getStatePath
public static Path getStatePath(StatePointerBean spb) throws IOException
- Parameters:
spb
-- Returns:
- Throws:
IOException
-
prettyPrint
public static String prettyPrint(StatePointerBean spb)
- Parameters:
spb
-- Returns:
-
-