v29.4-roots.3 · Commit 7: [PATCH 07/30] release: establish Roots maintenance and assurance
src/kernel/mempool_entry.h
Before: src/kernel/mempool_entry.h · After: src/kernel/mempool_entry.h
File metadata
index c27376c0ecd25f8272b6d10b1626dd3424714546..f36707f24c4ea26efc2de38949f5f8cd3d436b44 100644
Download original patch · Release notes
Diff rows 1–9 of 9. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.
src/kernel/mempool_entry.h
CHANGED
|
@@ -152,8 +152,7 @@ public:
|
|
|
152
152
|
nSizeWithAncestors{GetTxSize()},
|
|
153
153
|
nModFeesWithAncestors{nFee},
|
|
154
154
|
nSigOpCostWithAncestors{sigOpCost} {
|
|
155
|
-
CAmount nValueIn = tx->GetValueOut() + nFee;
|
|
156
|
-
assert(inChainInputValue <= nValueIn);
|
|
155
|
+
assert(inChainInputValue == 0 || inChainInputValue <= tx->GetValueOut() + nFee);
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
CTxMemPoolEntry(const CTransactionRef& tx, CAmount fee,
|