v29.4-roots.4 · Commit 7: [PATCH 07/37] 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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/kernel/mempool_entry.h
CHANGED
|
@@ -152,8 +152,7 @@ public:
|
|
| 152 |
nSizeWithAncestors{GetTxSize()},
|
| 153 |
nModFeesWithAncestors{nFee},
|
| 154 |
nSigOpCostWithAncestors{sigOpCost} {
|
| 155 |
-
CAmount nValueIn = tx->GetValueOut() + nFee;
|
| 156 |
-
assert(inChainInputValue <= nValueIn);
|
| 157 |
}
|
| 158 |
|
| 159 |
CTxMemPoolEntry(const CTransactionRef& tx, CAmount fee,
|
|
|
|
| 152 |
nSizeWithAncestors{GetTxSize()},
|
| 153 |
nModFeesWithAncestors{nFee},
|
| 154 |
nSigOpCostWithAncestors{sigOpCost} {
|
| 155 |
+
assert(inChainInputValue == 0 || inChainInputValue <= tx->GetValueOut() + nFee);
|
|
|
|
| 156 |
}
|
| 157 |
|
| 158 |
CTxMemPoolEntry(const CTransactionRef& tx, CAmount fee,
|