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 BigInteger
StakeManagement. getTotalAtStake(ConcurrentSkipListSet<AcceptedBetByHolderBean> acceptedBets, KeyWriterStatusBean kwSB)
STEP IV: returns the total amount of green tokens at stakestatic BigInteger
StakeManagement. 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 InternalTransactionBean
TkmStateHelper. 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 KeyWriterStatusBean
TkmKeyWriter. createBalanceStatusBean(int epoch, int slot, String uid)
static KeyWriterStatusBean
TkmNodeManager. createNodeManagerStatusBean(int epoch, int slot, String uid)
static KeyWriterStatusBean
TkmKeyWriter. createStatusBean(FixedParameters.HexKeyWriter type, int epoch, int slot, String uid)
static KeyWriterStatusBean
KeyWriterStatusUtility. getKWSB(KeyWriterSerializableStatusBean kwSSB)
convert system status to serializable formstatic KeyWriterStatusBean
TkmNodeManager. getKWSB(KeyWriterSerializableStatusBean kwSSB)
convert system status to serializable formKeyWriterStatusBean
KeyWriterGlobalStatus. getStatusAcceptedBetBH()
KeyWriterStatusBean
KeyWriterGlobalStatus. getStatusBalance()
KeyWriterStatusBean
KeyWriterGlobalStatus. getStatusBlocks()
KeyWriterStatusBean
KeyWriterGlobalStatus. getStatusNodeManager()
KeyWriterStatusBean
KeyWriterGlobalStatus. getStatusOverTheLimit()
KeyWriterStatusBean
KeyWriterGlobalStatus. getStatusStake()
KeyWriterStatusBean
KeyWriterGlobalStatus. getStatusStakeUndo()
KeyWriterStatusBean
KeyWriterGlobalStatus. getStatusTRB()
static KeyWriterStatusBean
KeyWriterStatusUtility. nextBalanceStatusBean(int epoch, int slot, String uid, KeyWriterStatusBean oldKwSB)
static KeyWriterStatusBean
TkmNodeManager. nextNodeStatusBean(int epoch, int slot, String uid, KeyWriterStatusBean oldKwSB)
static KeyWriterStatusBean
KeyWriterStatusUtility. readStatusBeanFromFile(int epoch, int slot, String uid, FixedParameters.HexKeyWriter type)
read path file from diskstatic KeyWriterStatusBean
KeyWriterStatusUtility. readStatusBeanFromFile(int epoch, int slot, String uid, FixedParameters.HexKeyWriter type, int newEpoch, int newSlot, String newUid)
static KeyWriterStatusBean
TkmNodeManager. 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 String
NodeManagerUtils. getMainKeyUrl64FromOverflow(String overflowNodeKeyUrl64, KeyWriterStatusBean kwNMSB)
static ConcurrentSkipListMap<String,Path>
KeyWriterStatusUtility. getRequiredBuckets(KeyWriterStatusBean kwSB, ConcurrentSkipListMap<String,String> hexToUrl64)
static KeyWriterSerializableStatusBean
KeyWriterStatusUtility. getSerializableKWSB(KeyWriterStatusBean kwSB)
get the serializzable version of the key status writerstatic KeyWriterSerializableStatusBean
TkmNodeManager. getSerializableKWSB(KeyWriterStatusBean kwSB)
get the serializable version of the key status writerstatic KeyWriterStatusBean
KeyWriterStatusUtility. nextBalanceStatusBean(int epoch, int slot, String uid, KeyWriterStatusBean oldKwSB)
static KeyWriterStatusBean
TkmNodeManager. nextNodeStatusBean(int epoch, int slot, String uid, KeyWriterStatusBean oldKwSB)
static String
TkmTextUtils. 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 void
KeyWriterStatusUtility. saveStatusBeanToFile(KeyWriterStatusBean kwSB)
save passed status file to disk in json formstatic void
TkmNodeManager. saveStatusBeanToFile(KeyWriterStatusBean kwSB)
save passed status file to disk in json formvoid
KeyWriterGlobalStatus. setStatusAcceptedBetBH(KeyWriterStatusBean statusAcceptedBetBH)
void
KeyWriterGlobalStatus. setStatusBalance(KeyWriterStatusBean statusBalance)
void
KeyWriterGlobalStatus. setStatusBlocks(KeyWriterStatusBean statusBlocks)
void
KeyWriterGlobalStatus. setStatusNodeManager(KeyWriterStatusBean statusNodeManager)
void
KeyWriterGlobalStatus. setStatusOverTheLimit(KeyWriterStatusBean statusOverTheLimit)
void
KeyWriterGlobalStatus. setStatusStake(KeyWriterStatusBean statusStake)
void
KeyWriterGlobalStatus. setStatusStakeUndo(KeyWriterStatusBean statusStakeUndo)
void
KeyWriterGlobalStatus. setStatusTRB(KeyWriterStatusBean statusTRB)
static void
TkmKeyWriter. updateBalances(KeyWriterBalancesBean kwBB, KeyWriterStatusBean kwSB)
Copy the values from right to left.static void
TkmStakeWriter. updateStake(KeyWriterStakeBean kwSTB, KeyWriterStatusBean kwSB)
static void
TkmStakeUndoKeyWriter. updateStakeUndo(KeyWriterStakeUndoBean kwSU, KeyWriterStatusBean kwSB)
-