MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / NewTx

Method NewTx

src/policy/fees.cpp:462–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462unsigned int TxConfirmStats::NewTx(unsigned int nBlockHeight, double val)
463{
464 unsigned int bucketindex = bucketMap.lower_bound(val)->second;
465 unsigned int blockIndex = nBlockHeight % unconfTxs.size();
466 unconfTxs[blockIndex][bucketindex]++;
467 return bucketindex;
468}
469
470void TxConfirmStats::removeTx(unsigned int entryHeight, unsigned int nBestSeenHeight, unsigned int bucketindex, bool inBlock)
471{

Callers 1

processTransactionMethod · 0.80

Calls 2

lower_boundMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected