AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 15 Bitcoin

Merge bitcoin/bitcoin#36820: refactor: remove more dead code

Public commit record

What the developer wrote

Authored by merge-script

91/100 · Strong
Merge bitcoin/bitcoin#36820: refactor: remove more dead code

1fdc122104714fb3c1a32ed47bc3ef6238239bea sign: remove unused merkle_root parameter from CreateMuSig2Nonce (fanquake)
a74575efaa395737a3ca3cffddf60ec6df0b4f62 qt: remove unused CONNECTIONS_NONE (fanquake)
c54b1f851dfe9a3431ebb240de613f225e721829 qt: remove unused RPCConsole::MC_ERROR and MC_DEBUG (fanquake)
e00725893c2540105af78e455699ab66dd2c4d70 qt: remove unused couldSignInputs psbtx parameter (fanquake)
e207f89acdad0a4306cfe3a9fe4aaa6f21a97bae wallet: remove unused last_client parameter from LoadLegacyWalletRecords (fanquake)
8c260313498b009e59f68b798bf0294c6ece992d qt: remove unused RPCConsole::cachedNodeids (fanquake)
15384fcfe914057839a70b7bf4f231d09d9b545a net: remove unused const CConnman::ForEachNode overload (fanquake)
6269fc9844fe9f502263508b8706d01ea1bc1825 torcontrol: remove commented-out cookie AUTHENTICATE command (fanquake)
5eda364170c15f3db2e6651cea6dd0b6bf53dda4 rest: remove no-op InterruptREST (fanquake)
19c49e85a62ac48fda61984ca74a379e6c70d923 ui: remove unused CClientUIInterface::SECURE flag (fanquake)
92f37114a9b8f855b2b83ab4736473c219947673 test: remove unused CMutableTransaction in orphanage peer_dos_limits (fanquake)
2656b53a228b19387cb81a47802b61783cd793cb test: remove unused block copies in TestBasicMining (fanquake)
993aa07d5060f2f4d2110d4b226c7cfe6ab7e3d2 bench: remove unused accumulator in MuHashPrecompute (fanquake)
df3dac57830a8d2c60bdf328b7125a7b2a521981 bitcoind: remove unused std::any context in AppInit (fanquake)
0c43d611ec88305b9fa5adaada437f7f3a77abbc bitcoin-chainstate: remove unused m_expected_valid_block (fanquake)
bdf096650b3925f3797053905aa40e034d1c1e5e wallet: remove unused CoinsResult::TypesCount (fanquake)
d70c3eda41cdab3de3316d2af0ca73423fe4e78a rpc: remove write-only input_txos from scantxoutset (fanquake)
1acf631ba09268af9a4e538601c410bc6fff2221 policy: remove unused STANDARD_NOT_MANDATORY_VERIFY_FLAGS (fanquake)
c48ee24cd03ed9e0013fba79181b0d935f7f748a serialize: remove unused unique_ptr<const T> serialization (fanquake)
6a77e96fecef3c0a47e14ce6185bfa4016610b13 util: remove unused util::insert overloads (fanquake)
e01e874c565e7ecf112ffd45b9bbe0e1949be228 util: remove unused TokenBucket clock and duration aliases (fanquake)
20756d22706ccdbf25b75ffacb968e73e0b314dd ui: remove unused CClientUIInterface::ICON_MASK (fanquake)
f207ced7fea92aa32bd54d38e4fcce465398f901 serialize: remove unused GetSizeOfVarInt (fanquake)
1834eee08821710924ebc94b1b5992e85fb1d166 fees: remove unused FeeCalculation::best_height (fanquake)
80738f9ab27a1352fd0c818c1749df4dfc18f443 descriptor: remove unused ctx parameter from InferXOnlyPubkey (fanquake)

Pull request description:

Similar to #36509. Also generally related to #36167.

ACKs for top commit:
stickies-v:
re-ACK 1fdc122104714fb3c1a32ed47bc3ef6238239bea

Tree-SHA512: bc4e98831fb6cb777ab45a5a89a10bd05fd7c3e40c3d6cdbcb065a5df8058a2e839d36b3aa312afea3db7fffe4cd9f927e51751bbb4e4580a2672ab6adea56bd
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit is a large cleanup that removes unused variables, unused function parameters, dead code paths, and commented-out code across Bitcoin Core. None of the changes alter how the software behaves or processes untrusted data; they only delete things that were not being used. There is no indication of a security vulnerability being fixed.

Recommended action

No security action required. Treat as normal code-quality refactoring.

Security signals we found

01

No security-relevant signals present

02

Pure refactoring / dead-code removal

03

No changes to consensus, networking, cryptography, or input validation logic

Risk score

Why this scored 15/100

Our methodology →
Potential impact 0/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 0/15
Confidence 10/10
Evidence quality 5/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.