| 283 | } |
| 284 | |
| 285 | void BlockAssembler::AddToBlock(CTxMemPool::txiter iter) |
| 286 | { |
| 287 | pblocktemplate->block.vtx.emplace_back(iter->GetSharedTx()); |
| 288 | pblocktemplate->vTxFees.push_back(iter->GetFee()); |
| 289 | pblocktemplate->vTxSigOpsCost.push_back(iter->GetSigOpCost()); |
| 290 | nBlockWeight += iter->GetTxWeight(); |
| 291 | ++nBlockTx; |
| 292 | nBlockSigOpsCost += iter->GetSigOpCost(); |
| 293 | nFees += iter->GetFee(); |
| 294 | inBlock.insert(iter); |
| 295 | |
| 296 | bool fPrintPriority = gArgs.GetBoolArg("-printpriority", DEFAULT_PRINTPRIORITY); |
| 297 | if (fPrintPriority) { |
| 298 | LogPrintf("fee rate %s txid %s\n", |
| 299 | CFeeRate(iter->GetModifiedFee(), iter->GetTxSize()).ToString(), |
| 300 | iter->GetTx().GetHash().ToString()); |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | int BlockAssembler::UpdatePackagesForAdded(const CTxMemPool::setEntries& alreadyAdded, |
| 305 | indexed_modified_transaction_set &mapModifiedTx) |
nothing calls this directly
no test coverage detected