Package com.h2tcoin.takamakachain.block
Class InternalBlockBeanHelper
- java.lang.Object
-
- com.h2tcoin.takamakachain.block.InternalBlockBeanHelper
-
public class InternalBlockBeanHelper extends Object
- Author:
- giovanni.antino@h2tcoin.com
-
-
Constructor Summary
Constructors Constructor Description InternalBlockBeanHelper()
-
Method Summary
-
-
-
Method Detail
-
initEmptyBlock
public static InternalBlockBean initEmptyBlock()
- Returns:
-
getValidity
public static KeyContexts.InternalBlockTransactionState getValidity(TkmValidityBean tvb)
-
getCoinBaseMessage
public static String getCoinBaseMessage(BigInteger coinbase, RewardBean rb)
-
getCoinBaseMessage
public static String getCoinBaseMessage(BigInteger coinbase, BigInteger greenFees, BigInteger redFees, BigInteger frozenGreenFees, BigInteger frozenRedFees, int penaltiesSlots)
-
getEmptyRewardBean
public static TkmRewardBean getEmptyRewardBean(String toUrl64Addr)
-
getProposedKeyName
public static String getProposedKeyName(int epoch, int slot)
-
getTransactionsHash
public static String getTransactionsHash(InternalBlockBean ibb)
calculate the sith hash of transactions or return empty string (not null) if the transaction list is empty or null.- Parameters:
ibb
-- Returns:
-
getForwardKeysHash
public static String getForwardKeysHash(ConcurrentSkipListMap<String,String> forwardKeys)
-
populatePayback
public static void populatePayback(ConcurrentSkipListMap<String,TkmRewardBean> blockListPayback, ConcurrentSkipListMap<String,HolderStakesByTargetBean> hsbt, TkmCSBS i)
-
updateSingleRecord
public static BigInteger updateSingleRecord(BigInteger mainValue, BigInteger terminalBet, BigInteger totalTermBets, BigInteger previousValue)
-
getRewardListHash
public static String getRewardListHash(ConcurrentSkipListMap<String,TkmRewardBean> rewList)
-
getBlockHash
public static String getBlockHash(InternalBlockBean ibb)
-
-