| 269 | } |
| 270 | |
| 271 | void BlockAssembler::AddToBlock(const CTxMemPoolEntry& entry) |
| 272 | { |
| 273 | pblocktemplate->block.vtx.emplace_back(entry.GetSharedTx()); |
| 274 | pblocktemplate->vTxFees.push_back(entry.GetFee()); |
| 275 | pblocktemplate->vTxSigOpsCost.push_back(entry.GetSigOpCost()); |
| 276 | nBlockWeight += entry.GetTxWeight(); |
| 277 | ++nBlockTx; |
| 278 | nBlockSigOpsCost += entry.GetSigOpCost(); |
| 279 | nFees += entry.GetFee(); |
| 280 | |
| 281 | if (*m_options.print_modified_fee) { |
| 282 | LogInfo("fee rate %s txid %s\n", |
| 283 | CFeeRate(entry.GetModifiedFee(), entry.GetTxSize()).ToString(), |
| 284 | entry.GetTx().GetHash().ToString()); |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | void BlockAssembler::addChunks() |
| 289 | { |
nothing calls this directly
no test coverage detected