MCPcopy Create free account
hub / github.com/ElementsProject/elements / NewTx

Method NewTx

src/policy/fees.cpp:443–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441}
442
443unsigned int TxConfirmStats::NewTx(unsigned int nBlockHeight, double val)
444{
445 unsigned int bucketindex = bucketMap.lower_bound(val)->second;
446 unsigned int blockIndex = nBlockHeight % unconfTxs.size();
447 unconfTxs[blockIndex][bucketindex]++;
448 return bucketindex;
449}
450
451void TxConfirmStats::removeTx(unsigned int entryHeight, unsigned int nBestSeenHeight, unsigned int bucketindex, bool inBlock)
452{

Callers 1

processTransactionMethod · 0.80

Calls 2

lower_boundMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected