Uses of Class
com.h2tcoin.takamakachain.utils.threadSafeUtils.KeyWriterStatusBean
-
Packages that use KeyWriterStatusBean Package Description com.h2tcoin.takamakachain.db.embedded.node com.h2tcoin.takamakachain.state com.h2tcoin.takamakachain.utils.threadSafeUtils -
-
Uses of KeyWriterStatusBean in com.h2tcoin.takamakachain.db.embedded.node
Methods in com.h2tcoin.takamakachain.db.embedded.node with parameters of type KeyWriterStatusBean Modifier and Type Method Description static ConcurrentSkipListMap<String,AcceptedBetByTargetBean>StakeManagement. consolidateMainStakesByHolder(ConcurrentSkipListSet<AcceptedBetByHolderBean> acceptedBets, KeyWriterStatusBean kwSB)Get all the stakes consolidated on the MAIN addresses by holder Bets made on OVERFLOW nodes are transferred onto their MAINsstatic ConcurrentSkipListMap<String,BigInteger>StakeManagement. consolidateStakesOnMain(ConcurrentSkipListSet<AcceptedBetByHolderBean> acceptedBets, KeyWriterStatusBean kwSB)Step II: Get all stakes and consolidate them onto the MAIN addresses do not consider orphan nodes, whether MAIN or OVERFLOWstatic ConcurrentSkipListMap<String,HolderStakesByTargetBean>StakeManagement. getHolderStakesByTarget(ConcurrentSkipListSet<AcceptedBetByHolderBean> acceptedBets, KeyWriterStatusBean kwSB, ConcurrentSkipListMap<String,AcceptedBetByTargetBean> mainStakesByHolder)Same as AcceptedBetByHolder but this list contains only bets on MAIN addresses enabled to minestatic ConcurrentSkipListMap<String,NodeManagerBean>StakeManagement. getKeyListBucket(ConcurrentSkipListSet<String> hexKeys, KeyWriterStatusBean kwSB)return the buckets corresponding to the specified list of keysstatic ConcurrentSkipListMap<String,NodeManagerBean>StakeManagement. getKeyWriterBuckets(KeyWriterStatusBean kwSB)return the all the buckets corresponding to the specified keywriterstatic ConcurrentSkipListMap<String,NodeManagerBean>StakeManagement. getNodeLinks(ConcurrentSkipListSet<AcceptedBetByHolderBean> acceptedBets, KeyWriterStatusBean kwSB)returns the list of linked nodes MAIN/OVERFLOW that have stakes bet on themstatic ConcurrentSkipListMap<String,BigInteger>StakeManagement. getStakeDistribution(ConcurrentSkipListSet<AcceptedBetByHolderBean> acceptedBets, KeyWriterStatusBean kwSB, ConcurrentSkipListMap<String,BigInteger> mainStakes, ConcurrentSkipListMap<String,NodeManagerBean> nodeLinks, BigInteger minStake)STEP VI: redistribute stakes among mining nodes(OVERFLOWS)static BigIntegerStakeManagement. getTotalAtStake(ConcurrentSkipListSet<AcceptedBetByHolderBean> acceptedBets, KeyWriterStatusBean kwSB)STEP IV: returns the total amount of green tokens at stakestatic BigIntegerStakeManagement. minimunStakeAllowed(ConcurrentSkipListSet<AcceptedBetByHolderBean> acceptedBets, KeyWriterStatusBean kwSB)STEP V: returns the minimum amount of stake required for a node to be activated as a miner -
Uses of KeyWriterStatusBean in com.h2tcoin.takamakachain.state
Methods in com.h2tcoin.takamakachain.state with parameters of type KeyWriterStatusBean Modifier and Type Method Description static InternalTransactionBeanTkmStateHelper. pushOverflow(TkmCSBS i, KeyWriterStatusBean kwSB, String overflowAddrUrl64, String ephemeralPublicKey, BigInteger greenFee, BigInteger redFee)Returns the InternalTransactionBean of the CoinBase transaction of a block -
Uses of KeyWriterStatusBean in com.h2tcoin.takamakachain.utils.threadSafeUtils
Methods in com.h2tcoin.takamakachain.utils.threadSafeUtils that return KeyWriterStatusBean Modifier and Type Method Description static KeyWriterStatusBeanTkmKeyWriter. createBalanceStatusBean(int epoch, int slot, String uid)static KeyWriterStatusBeanTkmNodeManager. createNodeManagerStatusBean(int epoch, int slot, String uid)static KeyWriterStatusBeanTkmKeyWriter. createStatusBean(FixedParameters.HexKeyWriter type, int epoch, int slot, String uid)static KeyWriterStatusBeanKeyWriterStatusUtility. getKWSB(KeyWriterSerializableStatusBean kwSSB)convert system status to serializable formstatic KeyWriterStatusBeanTkmNodeManager. getKWSB(KeyWriterSerializableStatusBean kwSSB)convert system status to serializable formKeyWriterStatusBeanKeyWriterGlobalStatus. getStatusAcceptedBetBH()KeyWriterStatusBeanKeyWriterGlobalStatus. getStatusBalance()KeyWriterStatusBeanKeyWriterGlobalStatus. getStatusBlocks()KeyWriterStatusBeanKeyWriterGlobalStatus. getStatusNodeManager()KeyWriterStatusBeanKeyWriterGlobalStatus. getStatusOverTheLimit()KeyWriterStatusBeanKeyWriterGlobalStatus. getStatusStake()KeyWriterStatusBeanKeyWriterGlobalStatus. getStatusStakeUndo()KeyWriterStatusBeanKeyWriterGlobalStatus. getStatusTRB()static KeyWriterStatusBeanKeyWriterStatusUtility. nextBalanceStatusBean(int epoch, int slot, String uid, KeyWriterStatusBean oldKwSB)static KeyWriterStatusBeanTkmNodeManager. nextNodeStatusBean(int epoch, int slot, String uid, KeyWriterStatusBean oldKwSB)static KeyWriterStatusBeanKeyWriterStatusUtility. readStatusBeanFromFile(int epoch, int slot, String uid, FixedParameters.HexKeyWriter type)read path file from diskstatic KeyWriterStatusBeanKeyWriterStatusUtility. readStatusBeanFromFile(int epoch, int slot, String uid, FixedParameters.HexKeyWriter type, int newEpoch, int newSlot, String newUid)static KeyWriterStatusBeanTkmNodeManager. readStatusBeanFromFile(int epoch, int slot, String uid, FixedParameters.HexKeyWriter type)read path file from diskMethods in com.h2tcoin.takamakachain.utils.threadSafeUtils with parameters of type KeyWriterStatusBean Modifier and Type Method Description static StringNodeManagerUtils. getMainKeyUrl64FromOverflow(String overflowNodeKeyUrl64, KeyWriterStatusBean kwNMSB)static ConcurrentSkipListMap<String,Path>KeyWriterStatusUtility. getRequiredBuckets(KeyWriterStatusBean kwSB, ConcurrentSkipListMap<String,String> hexToUrl64)static KeyWriterSerializableStatusBeanKeyWriterStatusUtility. getSerializableKWSB(KeyWriterStatusBean kwSB)get the serializzable version of the key status writerstatic KeyWriterSerializableStatusBeanTkmNodeManager. getSerializableKWSB(KeyWriterStatusBean kwSB)get the serializable version of the key status writerstatic KeyWriterStatusBeanKeyWriterStatusUtility. nextBalanceStatusBean(int epoch, int slot, String uid, KeyWriterStatusBean oldKwSB)static KeyWriterStatusBeanTkmNodeManager. nextNodeStatusBean(int epoch, int slot, String uid, KeyWriterStatusBean oldKwSB)static StringTkmTextUtils. prettyPrintKeyWriterStatusBean(String header, KeyWriterStatusBean kwSB)static ConcurrentSkipListMap<String,BalanceBean>TkmKeyWriter. retriveBalances(KeyWriterBalancesBean kwBB, KeyWriterStatusBean kwSB)this function does not alter balance bean.static ConcurrentSkipListMap<String,NodeManagerBean>TkmNodeManager. retriveNodeLinks(KeyWriterNodeManagerBean nwB, KeyWriterStatusBean kwSB)this function does not alter bean.static ConcurrentSkipListMap<String,StakeBean>TkmKeyWriter. retriveStake(KeyWriterStakeBean kwSTB, KeyWriterStatusBean kwSB)static ConcurrentSkipListMap<String,StakeUndoBean>TkmStakeUndoKeyWriter. retriveStakeUndo(KeyWriterStakeUndoBean kwSU, KeyWriterStatusBean kwSB)this function does not alter StakeUndoBean.static voidKeyWriterStatusUtility. saveStatusBeanToFile(KeyWriterStatusBean kwSB)save passed status file to disk in json formstatic voidTkmNodeManager. saveStatusBeanToFile(KeyWriterStatusBean kwSB)save passed status file to disk in json formvoidKeyWriterGlobalStatus. setStatusAcceptedBetBH(KeyWriterStatusBean statusAcceptedBetBH)voidKeyWriterGlobalStatus. setStatusBalance(KeyWriterStatusBean statusBalance)voidKeyWriterGlobalStatus. setStatusBlocks(KeyWriterStatusBean statusBlocks)voidKeyWriterGlobalStatus. setStatusNodeManager(KeyWriterStatusBean statusNodeManager)voidKeyWriterGlobalStatus. setStatusOverTheLimit(KeyWriterStatusBean statusOverTheLimit)voidKeyWriterGlobalStatus. setStatusStake(KeyWriterStatusBean statusStake)voidKeyWriterGlobalStatus. setStatusStakeUndo(KeyWriterStatusBean statusStakeUndo)voidKeyWriterGlobalStatus. setStatusTRB(KeyWriterStatusBean statusTRB)static voidTkmKeyWriter. updateBalances(KeyWriterBalancesBean kwBB, KeyWriterStatusBean kwSB)Copy the values from right to left.static voidTkmStakeWriter. updateStake(KeyWriterStakeBean kwSTB, KeyWriterStatusBean kwSB)static voidTkmStakeUndoKeyWriter. updateStakeUndo(KeyWriterStakeUndoBean kwSU, KeyWriterStatusBean kwSB)
-