You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
c0642e5 [fuzz] fix latency score check in txorphan_protected (glozow)
3d4d4f0 scripted-diff: rename "ann" variables to "latency_score" (monlovesmango)
3b92448 [doc] comment fixups for orphanage changes (glozow)
1384dba [config] emit warning for -maxorphantx, but allow it to be set (glozow)
b10c55b fix up TxOrphanage lower_bound sanity checks (glozow)
cfd71c6 scripted-diff: rename TxOrphanage outpoints index (glozow)
edb97bb [logging] add logs for inner loop of LimitOrphans (glozow)
8a58d0e scripted-diff: rename OrphanTxBase to OrphanInfo (glozow)
cc50f2f [cleanup] replace TxOrphanage::Size() with CountUniqueOrphans (glozow)
ed24e01 [optimization] Maintain at most 1 reconsiderable announcement per wtxid (Pieter Wuille)
af7402c [refactor] make TxOrphanage keep itself trimmed (glozow)
d1fac25 [doc] 31829 release note (glozow)
Pull request description:
Followup to #31829:
- Release notes
- Have the orphanage auto-trim itself whenever necessary (and test changes) bitcoin/bitcoin#31829 (comment)
- Reduce duplicate reconsiderations by keeping track of which txns are already reconsiderable so we only mark it for reconsideration for 1 peer at a time bitcoin/bitcoin#31829 (comment)
- Rename `OrphanTxBase` to `OrphanInfo`
- Get rid of `Size()` method by replacing all calls with `CountUniqueOrphans`
- Rename outpoints index since they point to wtxids, not iterators bitcoin/bitcoin#31829 (comment)
- Add more logging in the `LimitOrphans` inner loop to make it easy to see which peers are being trimmed bitcoin/bitcoin#31829 (comment)
ACKs for top commit:
sipa:
utACK c0642e5
marcofleon:
Nice, ACK c0642e5
Tree-SHA512: f298eae92cf906ed5e4f15a24eeffa7b9e620bcff457772cd77522dd9f0b3b183ffc976871b1b0e6fe93009e64877d518e53d4b9e186e0df58fc16d17f6de90a
// Every peer sends the same transactions, all from shared_txs.
137
136
// Each peer has 1 or 2 assigned transactions, which they must place as the last and second-to-last positions.
138
137
// The assignments ensure that every transaction is in some peer's last 2 transactions, and is thus remains in the orphanage until the end of LimitOrphans.
argsman.AddArg("-allowignoredconf", strprintf("For backwards compatibility, treat an unused %s file in the datadir as a warning, not an error.", BITCOIN_CONF_FILENAME), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
491
491
argsman.AddArg("-loadblock=<file>", "Imports blocks from external file on startup", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
492
492
argsman.AddArg("-maxmempool=<n>", strprintf("Keep the transaction memory pool below <n> megabytes (default: %u)", DEFAULT_MAX_MEMPOOL_SIZE_MB), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
493
+
// TODO: remove in v31.0
494
+
argsman.AddArg("-maxorphantx=<n>", strprintf("(Removed option, see release notes)"), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
493
495
argsman.AddArg("-mempoolexpiry=<n>", strprintf("Do not keep transactions in the mempool longer than <n> hours (default: %u)", DEFAULT_MEMPOOL_EXPIRY_HOURS), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
494
496
argsman.AddArg("-minimumchainwork=<hex>", strprintf("Minimum work assumed to exist on a valid chain in hex (default: %s, testnet3: %s, testnet4: %s, signet: %s)", defaultChainParams->GetConsensus().nMinimumChainWork.GetHex(), testnetChainParams->GetConsensus().nMinimumChainWork.GetHex(), testnet4ChainParams->GetConsensus().nMinimumChainWork.GetHex(), signetChainParams->GetConsensus().nMinimumChainWork.GetHex()), ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::OPTIONS);
495
497
argsman.AddArg("-par=<n>", strprintf("Set the number of script verification threads (0 = auto, up to %d, <0 = leave that many cores free, default: %d)",
0 commit comments