Package com.h2tcoin.takamakachain.state
Class TkmStateHelper
- java.lang.Object
-
- com.h2tcoin.takamakachain.state.TkmStateHelper
-
public class TkmStateHelper extends Object
- Author:
- Giovanni Antino
-
-
Constructor Summary
Constructors Constructor Description TkmStateHelper()
-
Method Summary
-
-
-
Method Detail
-
getNewMainRecordBeanInternal
public static MainRecordBeanInternal getNewMainRecordBeanInternal(String mainUrl64Addr)
-
getNewOverflowBlockCounterBean
public static OverflowBlockCounterBean getNewOverflowBlockCounterBean(String overflowUrl64Addr, String mainUrl64Addr)
-
getNewMainRecordBean
public static MainRecordBean getNewMainRecordBean(int epoch, int slot, String uid)
-
getNewOneThirdRecord
public static OneThirdRecord getNewOneThirdRecord(int epoch, int slot, String uid, String epochSeed)
-
getNewOneThirdRecordMap
public static ConcurrentSkipListMap<Integer,OneThirdRecord> getNewOneThirdRecordMap(int epoch, int slot, String uid, String epochSeed)
-
deepCopyOperationalState
public static ConcurrentSkipListMap<Integer,MainRecordBean> deepCopyOperationalState(ConcurrentSkipListMap<Integer,MainRecordBean> listOfMainRecordBean)
-
deepCopyOneThirdRecord
public static OneThirdRecord deepCopyOneThirdRecord(OneThirdRecord oldOtr)
-
deepCopyStringToStringMap
public static ConcurrentSkipListMap<String,String> deepCopyStringToStringMap(ConcurrentSkipListMap<String,String> map)
-
deepCopyOneThirdRecordMap
public static ConcurrentSkipListMap<Integer,OneThirdRecord> deepCopyOneThirdRecordMap(ConcurrentSkipListMap<Integer,OneThirdRecord> oldOtrm)
-
deepCopyTkmProposedKeyMap
public static ConcurrentSkipListMap<String,TkmProposedKey> deepCopyTkmProposedKeyMap(ConcurrentSkipListMap<String,TkmProposedKey> oldOtrm)
-
getNewOneThirdReference
public static ConcurrentSkipListMap<Integer,MainRecordBean> getNewOneThirdReference(int epoch, int slot, String uid)
-
deepCopyCurrentEpochSlotDistribution
public static ConcurrentSkipListMap<String,ConcurrentSkipListSet<Integer>> deepCopyCurrentEpochSlotDistribution(ConcurrentSkipListMap<String,ConcurrentSkipListSet<Integer>> cesd)
-
pushOverflow
public static InternalTransactionBean pushOverflow(TkmCSBS i, KeyWriterStatusBean kwSB, String overflowAddrUrl64, String ephemeralPublicKey, BigInteger greenFee, BigInteger redFee)
Returns the InternalTransactionBean of the CoinBase transaction of a block- Parameters:
i
-kwSB
- can be optionally passed as null, it gets calculated inside if not known, TransactionType MUST be NODEoverflowAddrUrl64
-ephemeralPublicKey
- public key du cazz per la forward securityredFee
- to be divided 20-80 between holders and nodegreenFee
- to be divided 20-80 between holders and node- Returns:
-
getDefaultCSB
public static ChainStateBean getDefaultCSB()
-
-