v29.4-roots.2 · Commit 10: [PATCH 10/21] fix: harden final Roots assurance
src/kernel/mempool_entry.h
Before: src/kernel/mempool_entry.h · After: src/kernel/mempool_entry.h
File metadata
index f36707f24c4ea26efc2de38949f5f8cd3d436b44..ba9376177890521ada5d866cfa8ac81f20fe7de5 100644
Download original patch · Release notes
Diff rows 1–8 of 8. 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
|
@@ -142,7 +142,7 @@ public:
|
|
|
142
142
|
entryHeight{entry_height},
|
|
143
143
|
cachedPriority{entryPriority},
|
|
144
144
|
// Since entries arrive *after* the tip's height, their entry priority is for the height+1
|
|
145
|
-
cachedHeight{entry_height + 1},
|
|
145
|
+
cachedHeight{SaturatingAdd(entry_height, 1U)},
|
|
146
146
|
inChainInputValue{coin_age_cache.in_chain_input_value},
|
|
147
147
|
spendsCoinbase{spends_coinbase},
|
|
148
148
|
m_modified_fee{nFee},
|