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

Class update_for_parent_inclusion

src/node/miner.h:124–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122typedef indexed_modified_transaction_set::index<confidential_score>::type::iterator modconftxscoreiter; // ELEMENTS
123
124struct update_for_parent_inclusion
125{
126 explicit update_for_parent_inclusion(CTxMemPool::txiter it) : iter(it) {}
127
128 void operator() (CTxMemPoolModifiedEntry &e)
129 {
130 e.nModFeesWithAncestors -= iter->GetFee();
131 e.nSizeWithAncestors -= iter->GetTxSize();
132 e.discountSizeWithAncestors -= iter->GetDiscountTxSize();
133 e.nSigOpCostWithAncestors -= iter->GetSigOpCost();
134 }
135
136 CTxMemPool::txiter iter;
137};
138
139/** Generate a new block, without valid proof-of-work */
140class BlockAssembler

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected