BC
← All projectsBitcoin Core

Bitcoin Core

The Bitcoin network's reference node and wallet implementation.

BitcoinSupply chainNormal
Repository coverage

3541 commits in the local evidence base

Every captured commit receives deterministic security triage and a separate communication-quality score. Security candidates and broader second-pass signals receive full-patch Ollama analysis.

423security candidates742second-pass queue3185AI analyses
177commits · 30 days
340commits · 60 days
1154commits · 180 days
2724commits · 365 days
Backfill bands
Aug 5 → Feb 61351 seen45 candidatesComplete
Feb 6 → Jun 61033 seen63 candidatesComplete
Jun 6 → Jul 6281 seen11 candidatesComplete
Jul 6 → Aug 5207 seen5 candidatesComplete
Commit communication

Does the history explain itself?

Message quality measures whether a commit identifies its scope, purpose, rationale, testing, and supporting references. It does not change the security-severity score.

73/100 average clarity
1511Strong · 80–100
1227Adequate · 60–79
715Thin · 40–59
88Opaque · 0–39
6security candidates with opaque commit messaging
Read the scoring rubric →
Developer activity

Who is changing the project?

Public Git author strings; identities are not independently verified.

DeveloperCommitsCandidatesAnalyzedHigh riskMessage avg.
merge-script462125218589
Antoine Poinsot25422169
Ava Chow22175205071
Hennadii Stepanov25624225067
MarcoFalke41923411074
fanquake24521230058
Lőrinc18221177081
Sjors Provoost90990074
rkrux57957074
Sebastian Falbesoner34734073
David Gumberg55655072
Pieter Wuille95595066
Analysis record

Published AI watches

Last scanned 20 minutes ago

Informational 21 AI analysisMessage 96 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#36734: net: Do not add transaction reported as TX_CONSENSUS to the extrapool

This change stops one specific category of clearly invalid Bitcoin transactions from being kept in a small helper pool used to reconstruct compact blocks. The helper pool (extrapool) stores transactions that did not fit in the normal mempo…

Behavioral change in transaction rejection handlingExplicitly described by author as not a vulnerability or regressionPartial mitigation only: does not prevent all consensus-invalid transactions from entering extrapool
19209e52by merge-script+3−22 files
No security note in commit
Low 34 AI analysisMessage 81 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#36978: rpc: require a hex string for OP_RETURN data

This commit fixes a small but real type-checking bug in Bitcoin Core's `createrawtransaction` RPC command. Previously, if a user accidentally passed a JSON number where a hex string was expected for OP_RETURN data, the command could silent…

Type confusion between JSON number and hex string in RPC input parsingSilent acceptance of unintended byte values in OP_RETURN outputsInput validation strengthened to match documented API contract
2c0b8c4eby merge-script+3−22 files
No security note in commit
Informational 20 AI analysisMessage 100 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#36998: fuzz: DisableNextWrite in mempool targets

This change only affects Bitcoin Core's internal fuzz testing programs. It makes fuzz test runs more reproducible by preventing hidden leftover state from one test input from influencing the next. It does not change normal node behavior, c…

test-only fuzz harness changedeterminism/reproducibility fix, not a runtime bug fixno change to consensus, networking, wallet, or mempool acceptance logic
8bb33f34by merge-script+13−03 files
No security note in commit
Low 41 AI analysisMessage 100 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#36758: rpc: handle malformed jsonrpc 2.0 requests correctly

This update fixes a bug in Bitcoin Core's JSON-RPC server. When a malformed request claimed to use JSON-RPC 2.0, the server could crash in debug builds or return the wrong HTTP status code in release builds. The fix makes the server return…

Debug-build assertion failure (crash) reachable via authenticated RPCProtocol non-compliance: malformed JSON-RPC 2.0 requests returned HTTP 400 instead of HTTP 200 with JSON-RPC error bodyMalformed batch subrequests without id were incorrectly treated as notifications and produced no reply
0bc1e88dby Ryan Ofsky+58−115 files
No security note in commit
Informational 15 AI analysisMessage 96 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#37040: test: fix private key check in wallet_listdescriptors.py

This commit fixes a bug in a Bitcoin Core test script. The test was supposed to check that the listdescriptors command does not leak private keys when private=false, but it was checking the wrong thing—so the test would always pass even if…

Test-only fixCorrects a vacuously-true assertionNo change to wallet/RPC implementation
cc27c50eby merge-script+2−21 file
No security note in commit
Informational 21 AI analysisMessage 91 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#36855: rpc: Deprecate watchonly wallet no-op named options

This change is a routine cleanup, not a security fix. Bitcoin Core is formally starting a deprecation cycle for several old wallet RPC options (includeWatching, include_watching, include_watchonly) that already did nothing ('no-op'). Unles…

No memory safety, cryptographic, or authorization changesBehavior change is a stricter RPC input check, not a relaxationOptions being deprecated are documented as no-op and have no effect on transaction funding logic
1b24b4f3by merge-script+52−69 files
No security note in commit
Informational 19 AI analysisMessage 91 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#36838: guix: backport oscrypto PBKDF2 timing fix

This change fixes a build-time bug in Bitcoin Core's release-signing toolchain. A helper library called oscrypto could crash with a 'division by zero' error when measuring how fast a password-stretching routine (PBKDF2) runs on very fast m…

Fixes a divide-by-zero / ZeroDivisionError in a dependency build scriptBackports an upstream timing-measurement fix for PBKDF2 benchmarkApplies only to Guix codesigning manifest and patched oscrypto package
5c4e8374by merge-script+42−12 files
No security note in commit
Informational 15 AI analysisMessage 81 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#36961: ci: enable `readability-redundant-access-specifiers`

This commit only changes code style. It turns on a clang-tidy lint rule that flags repeated 'public:' or 'private:' labels that don't change access, then either removes those redundant labels or adds NOLINT comments to ignore them in Qt co…

376c0a02by Hennadii Stepanov+39−4735 files
No security note in commit
Informational 15 AI analysisMessage 81 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#37007: refactor: Add missing explicit instantiations of function templates

This is a build-fix change, not a security fix. It adds explicit template instantiations for two internal functions used when computing Bitcoin transaction signatures. Without these, newer Clang compilers could fail to link the program bec…

8e09dc7bby merge-script+8−01 file
No security note in commit
Informational 15 AI analysisMessage 91 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#37011: test: fix input check of bumped tx in wallet_spend_unconfirmed.py

This is a one-line fix in a Bitcoin Core functional test file. The test was accidentally checking the wrong transaction after a fee-bump operation—it re-checked the original transaction instead of the new bumped transaction. This does not …

No production code changedTest-only assertion correctionNo cryptographic, consensus, P2P, or wallet runtime logic modified
0790f68dby merge-script+1−11 file
No security note in commit
Informational 15 AI analysisMessage 95 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

test: fix input check of bumped tx in wallet_spend_unconfirmed.py

This is a one-line fix in a Bitcoin Core functional test. The test was accidentally checking the original transaction twice instead of checking the newly created bumped (fee-increased) transaction. It does not change any production wallet …

5b43f22fby Sebastian Falbesoner+1−11 file
No security note in commit
Informational 15 AI analysisMessage 93 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

refactor: Add missing explicit instantiations of function templates

This is a build-fixing code cleanup, not a security patch. It adds explicit template instantiations for two internal signature-calculation functions so that the project links correctly with newer Clang compilers. There is no change to beha…

7ec6081eby Hennadii Stepanov+8−01 file
No security note in commit
Informational 16 AI analysisMessage 80 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

docs: update asmap-data URL with new github org

This is a documentation-only change that updates a single URL in a README file. The old URL still works, but it now points to the current GitHub organization that hosts the asmap-data repository. There is no code change and no security ris…

cd88fbd6by jurraca+1−11 file
No security note in commit
Informational 20 AI analysisMessage 81 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#36818: seeds: drop 21.ninja as a makeseeds source

This change removes an outdated web address list (21.ninja) from the instructions Bitcoin developers use when building the list of network seed nodes that ship with new Bitcoin Core releases. The old list had not been updated in about six …

Removal of stale external seed source from release-build documentationSupply-chain risk if compromised domain injects malicious peer addressesNo executable code change; documentation/instructions only
58e9d98fby merge-script+3−41 file
Vendor flagged security relevance
Informational 19 AI analysisMessage 100 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#36916: test: avoid BSD ephemeral-port collisions in HTTP clients

This commit fixes a flaky-test problem on FreeBSD and OpenBSD, not a security vulnerability in the Bitcoin Core software users run. The test framework sometimes randomly picked a network source port that collided with a port used by the te…

Fixes self-connect scenario in test HTTP clients on BSDPrevents source-port collision between test client and test listener portsOnly affects test framework, not production node networking
0629982aby Hennadii Stepanov+67−128 files
No security note in commit
Informational 15 AI analysisMessage 91 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#36921: test: fix `mining_prioritisetransaction` check that always passes

This commit fixes a test-only bug in a Bitcoin Core functional test. The test was supposed to verify that calling prioritisetransaction causes getblocktemplate to rebuild its block template, but it was actually passing for the wrong reason…

09586041by merge-script+7−51 file
No security note in commit
Moderate 58 AI analysisMessage 91 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#36895: Keep witness stacks in serialized form in CScriptWitness

This change is a defensive memory-optimization refactor for how Bitcoin Core stores transaction witness data. It replaces a structure that used many small memory allocations with a single compact serialized buffer. The primary security ben…

Memory-usage reduction for attacker-controlled transaction witnessesMitigation of resource-exhaustion DoS via large witness stacksImmutable witness representation prevents in-place modification bugs
dd96035eby merge-script+784−24863 files
Vendor flagged security relevance
Informational 15 AI analysisMessage 81 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#36967: lint: check copyright headers

This commit is a housekeeping change for Bitcoin Core. It adds a new automated linter that checks whether source files have the correct copyright header, and it updates or adds those headers across 27 files. There is no change to how Bitco…

859de225by merge-script+138−2227 files
No security note in commit
Low 37 AI analysisMessage 91 · Strong
BC Bitcoin CoreBitcoin Core BitcoinSupply chain

Merge bitcoin/bitcoin#36716: net: only monitor select exceptions while connecting

This change fixes a networking quirk in Bitcoin Core where the program could be woken up repeatedly by a rare TCP 'urgent data' signal, even though there was no real data to read. The fix makes the program only watch for that signal while …

Avoids spurious wakeups from TCP urgent data on select()-based buildsReduces CPU-waste / small-scale denial-of-service surface from malicious or misbehaving peersAdds explicit ErrorEvent opt-in to Sock::Wait() API
63a3c032by merge-script+52−84 files
Vendor flagged security relevance
Repository ledger

Explore captured commits

Expand any commit for its author, full message, clarity score, changed files, triage signals, analysis, and source link.

Lower-priorityrefactor: Use const reference to std::source_locationby MarcoFalke · fae1d996 · Nov 5, 2025 · 3 filesMessage 93 · StrongInformational 14Details
Commit message · MarcoFalke

refactor: Use const reference to std::source_location

Performance likely does not matter here, but from a perspective of
code-readablilty, a const reference should be preferred for read-only
access.

So use it here.

This requires to set -Wno-error=dangling-reference for GCC 13.1
compilations, but this false-positive is fixed in later GCC versions.

See also https://godbolt.org/z/fjc6be65M

93/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 14/100

This is a minor code cleanup (refactor) that changes how a diagnostic helper passes a C++ standard library object. It does not fix a security bug, change behavior, or introduce a vulnerability. The accompanying build-script changes only suppress a compiler warning that newer compilers would not emit anyway.

Lower-priorityutil: Allow Assert() in contexts without __func__by MarcoFalke · fa5fbcd6 · Nov 5, 2025 · 2 filesMessage 76 · AdequateInformational 15Details
Commit message · MarcoFalke

util: Allow Assert() in contexts without __func__

Without this, compile warnings could be hit about __func__ being only
valid inside functions.

warning: predefined identifier is only valid inside function [-Wpredefined-identifier-outside-function]
note: expanded from macro Assert
115 | #define Assert(val) inline_assertion_check<true>(val, __FILE__, __LINE__, __func__, #val)
| ^

Ref https://github.com/bitcoin/bitcoin/pull/32740#discussion_r2486258473

76/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 15/100

This is a routine code-quality change that swaps the old way of recording file, line, and function names in assertion helpers for a modern C++ standard feature. It fixes a compiler warning that could appear when assertions are used in certain contexts, but it does not change what the program does or fix any security bug.

Lower-priorityrefactor: remove dead code in `CountWitnessSigOps`by Lőrinc · 24bcad3d · Nov 4, 2025 · 5 filesMessage 100 · StrongInformational 15Details
Commit message · Lőrinc

refactor: remove dead code in `CountWitnessSigOps`

Found while reviewing #32840

The `nullptr` witness path was dead in normal code paths: removing it deletes unreachable logic.

Code coverage proof:
https://maflcko.github.io/b-c-cov/total.coverage/src/script/interpreter.cpp.gcov.html#L2135

100/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Mentions testing or verification✓ Links an issue, advisory, or supporting reference
AI analysis · Informational 15/100

This commit is a code cleanup: it removes an unused 'nullptr witness' code path from a Bitcoin Core function that counts signature operations in SegWit transactions. The change does not alter behavior in normal operation because the nullptr path was never reached. It is not a security fix.

Lower-prioritycmake: Replace recursive globbing with explicit globbing in foldersby Hennadii Stepanov · 76dae5d6 · Nov 4, 2025 · 1 fileMessage 50 · ThinInformational 15Details
Commit message · Hennadii Stepanov

cmake: Replace recursive globbing with explicit globbing in folders

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
documentation-only discount
AI analysis · Informational 15/100

This commit changes how Bitcoin Core's test files are copied into the build directory during compilation. It replaces a broad 'grab everything recursively' approach with explicit lists of file types per folder. There is no security vulnerability here; it is a build-system cleanup that makes the test setup more predictable and avoids accidentally linking unexpected files.

AI review queuedtest: remove obsolete `get_{key,multisig}` helpers from wallet_util.pyby Sebastian Falbesoner · ec8516ce · Nov 4, 2025 · 1 fileMessage 95 · StrongInformational 15Details
Commit message · Sebastian Falbesoner

test: remove obsolete `get_{key,multisig}` helpers from wallet_util.py

These helpers use a legacy wallet RPC (`dumpprivkey`) and thus don't
work anymore. They were only ever used for testing the `importmulti`
RPC, which also doesn't exist anymore.

95/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Informational 15/100

This commit simply removes two unused helper functions from Bitcoin Core's test code. The helpers relied on an old wallet command that no longer works and were only used for another removed test feature. There is no security issue here.

Security candidateclang-tidy: Remove no longer needed NOLINTby Hennadii Stepanov · 038849e2 · Nov 4, 2025 · 1 fileMessage 45 · ThinInformational 15Details
Commit message · Hennadii Stepanov

clang-tidy: Remove no longer needed NOLINT

45/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
Why it was queued
seed or entropy path
AI analysis · Informational 15/100

This is a minor code cleanup change. It removes a comment marker used by an automated linting tool (clang-tidy) because the tool no longer needs it. The actual code behavior is unchanged.

Lower-priorityguix: disable libsanitizer in Linux GCC buildby fanquake · 5c41fa29 · Nov 4, 2025 · 1 fileMessage 76 · AdequateInformational 17Details
Commit message · fanquake

guix: disable libsanitizer in Linux GCC build

This causes issues when building against newer glibcs (i.e 2.42), and isn't needed
in any case.

```bash
../../../../gcc-14.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:483:31: error: invalid application of ‘sizeof’ to incomplete type ‘__sanitizer::termio’
483 | unsigned struct_termio_sz = sizeof(struct termio);
| ^~~~~~~~~~~~~~~~~~~~~
```

Extracted from #25573.

76/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Why it was queued
defensive validation
AI analysis · Informational 17/100

This commit changes the build setup for Bitcoin Core's Linux releases so that a GCC component called libsanitizer is not compiled. The change is purely a build-compatibility fix: newer versions of glibc (the GNU C library) cause libsanitizer to fail to compile, so the Bitcoin Core developers disabled it because they do not need it for their release builds. There is no indication this fixes a security vulnerability in Bitcoin Core itself.

Lower-prioritycmake: Move IPC tests to `ipc/test`by Hennadii Stepanov · ae2e438b · Nov 4, 2025 · 4 filesMessage 55 · ThinInformational 15Details
Commit message · Hennadii Stepanov

cmake: Move IPC tests to `ipc/test`

55/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Mentions testing or verification! No meaningful explanatory body
AI analysis · Informational 15/100

This commit is a routine build-system cleanup. It moves existing inter-process communication (IPC) test files from one directory to another and updates CMake instructions accordingly. No production code, no security-sensitive logic, and no bug fixes are present.

AI review queuedci: run native fuzz with MSAN jobby fanquake · 1e6e32fa · Nov 4, 2025 · 1 fileMessage 82 · StrongInformational 15Details
Commit message · fanquake

ci: run native fuzz with MSAN job

Set the timout to 150, to give some leeway to the slow GHA runners, that
were close to timing out with a 120m limit.

82/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Mentions testing or verification
Why it was queued
fuzzing or regression evidencedocumentation-only discountsecond-pass: broader security terminology
AI analysis · Informational 15/100

This commit only adds a new automated testing job to Bitcoin Core's continuous integration (CI) pipeline. It runs the existing fuzz tests under MemorySanitizer (MSan), a tool that detects use of uninitialized memory. The change does not modify Bitcoin Core's actual source code, network behavior, or wallet logic, so it cannot directly introduce or fix a security vulnerability in the software users run.

Lower-priorityci: use LLVM libcxx 21.1.5by fanquake · 3784d15b · Nov 4, 2025 · 1 fileMessage 57 · ThinInformational 15Details
Commit message · fanquake

ci: use LLVM libcxx 21.1.5

57/100 · ThinMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope! No meaningful explanatory body
AI analysis · Informational 15/100

This commit simply updates the version of a testing tool (LLVM's libc++) used in automated continuous integration builds from 21.1.1 to 21.1.5. It does not change any Bitcoin Core code that runs on user machines, and there is no indication it fixes a security issue.

Lower-prioritykernel: Add Purpose section to header documentationby TheCharlatan · 6c7a34f3 · Nov 4, 2025 · 1 fileMessage 50 · ThinInformational 15Details
Commit message · TheCharlatan

kernel: Add Purpose section to header documentation

50/100 · ThinMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component! No meaningful explanatory body
AI analysis · Informational 15/100

This commit only adds plain-English documentation to a header file. It describes what the bitcoinkernel library is for and warns that the API is unstable and not yet released. No code behavior changed.

Lower-prioritykernel: Allowing reducing exportsby TheCharlatan · 7e9f00bc · Nov 4, 2025 · 1 fileMessage 58 · ThinInformational 17Details
Commit message · TheCharlatan

kernel: Allowing reducing exports

Now that an API has been defined, remove the override for symbol
visibility of the library. It is now possible to build the library with
reduced exports.

58/100 · ThinMessage clarity
✓ Descriptive subject✓ Provides detailed explanatory context
Why it was queued
documentation-only discount
AI analysis · Informational 17/100

This commit removes a temporary build setting that forced the Bitcoin Core kernel library to expose all of its internal symbols. Now that the library's public API has been defined, the project can rely on normal symbol-hiding rules when users build with reduced exports. This is a hardening and cleanup change, not a fix for an active security bug.

Lower-prioritykernel: Add pure kernel bitcoin-chainstateby TheCharlatan · 7990463b · Nov 4, 2025 · 4 filesMessage 60 · AdequateInformational 15Details
Commit message · TheCharlatan

kernel: Add pure kernel bitcoin-chainstate

Re-write the bitcoin-chainstate utility by only using the kernel C++ API
header instead of internal Bitcoin Core code.

60/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
AI analysis · Informational 15/100

This commit rewrites an internal, experimental Bitcoin Core developer utility called bitcoin-chainstate so that it uses only the public libbitcoinkernel C++ API instead of internal Bitcoin Core code. It is a refactoring and build-system change. There is no indication it fixes or introduces a security vulnerability.

Lower-priorityKernel: Add functions for working with outpointsby TheCharlatan · 36ec9a3e · Nov 4, 2025 · 4 filesMessage 78 · AdequateInformational 15Details
Commit message · TheCharlatan

Kernel: Add functions for working with outpoints

This introduces the transaction outpoint, input and id types. This now
allows a user to retrieve a transaction output from a prior transaction
that a transaction outpoint is pointing to by either scanning through
all available transactions, or maintaining a data structure for lookups.

This is exercised in the tests by verifying the script of every
transaction in the test chain.

78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit adds new public programming interfaces (APIs) to the Bitcoin Core 'kernel' library so that developers can inspect transaction inputs, outpoints, and transaction IDs. It is a feature addition, not a fix for a security bug. The code does not change consensus rules, network behavior, or wallet handling. The new functions are covered by tests that verify they work correctly.

Lower-prioritykernel: Add block hash type and block tree utility functions to C headerby TheCharlatan · 5eec7fa9 · Nov 4, 2025 · 4 filesMessage 73 · AdequateInformational 15Details
Commit message · TheCharlatan

kernel: Add block hash type and block tree utility functions to C header

Introduce btck_BlockHash as a type-safe identifier for a block. Adds
functions to retrieve block tree entries by hash or height, get block
hashes and heights from entries. access the genesis block, and check if
blocks are in the active chain.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100

This commit adds new read-only ways for external programs using the Bitcoin Core kernel library to ask about blocks by their hash or height, and to compare block hashes. It is a straightforward expansion of the library's C API and its C++ wrapper, accompanied by tests. There is no indication it fixes a bug or closes a security hole.

Lower-prioritykernel: Add function to read block undo data from disk to C headerby TheCharlatan · f5d5d121 · Nov 4, 2025 · 4 filesMessage 73 · AdequateInformational 23Details
Commit message · TheCharlatan

kernel: Add function to read block undo data from disk to C header

This adds functions for reading the undo data from disk with a retrieved
block tree entry. The undo data of a block contains all the spent
script pubkeys of all the transactions in a block. For ease of
understanding the undo data is renamed to spent outputs with seperate
data structures exposed for a block's and a transaction's spent outputs.

In normal operations undo data is used during re-orgs. This data might
also be useful for building external indexes, or to scan for silent
payment transactions.

Internally the block undo data contains a vector of transaction undo
data which contains a vector of the coins consumed. The coins are all
int the order of the transaction inputs of the consuming transactions.
Each coin can be used to retrieve a transaction output and in turn a
script pubkey and amount.

This translates to the three-level hierarchy the api provides: Block
spent outputs contain transaction spent outputs, which contain
individual coins. Each coin includes the associated output, the height
of the block is contained in, and whether it is from a coinbase
transaction.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 23/100

This commit adds a new public programming interface (API) to the Bitcoin Core 'kernel' library that lets external callers read 'undo' data—renamed here as 'spent outputs'—from disk. Undo data records which previous coins were consumed by transactions in a block. It is normally used internally during chain reorganizations, but the change exposes it for external indexing and silent-payment scanning. The change is a feature addition, not a fix for a known vulnerability, and the commit message does not describe it as security-relevant.

Lower-prioritykernel: Add functions to read block from disk to C headerby TheCharlatan · 09d0f626 · Nov 4, 2025 · 4 filesMessage 73 · AdequateInformational 18Details
Commit message · TheCharlatan

kernel: Add functions to read block from disk to C header

This adds functions for reading a block from disk with a retrieved block
tree entry. External services that wish to build their own index, or
analyze blocks can use this to retrieve block data.

The block tree can now be traversed from the tip backwards. This is
guaranteed to work, since the chainstate maintains an internal block
tree index in memory and every block (besides the genesis) has an
ancestor.

The user can use this function to iterate through all blocks in the
chain (starting from the tip). The tip is retrieved from a separate
`Chain` object, which allows distinguishing whether entries are
currently in the best chain. Once the block tree entry for the genesis
block is reached a nullptr is returned if the user attempts to get the
previous entry.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 18/100

This commit adds new read-only functions to Bitcoin Core's libbitcoinkernel library so external programs can walk backward through the blockchain from the current tip and read raw block data from disk. It is a feature addition, not a fix for a known security problem. There is no evidence in the commit or supplied references that it addresses a vulnerability.

Lower-prioritykernel: Add function for copying block data to C headerby TheCharlatan · a263a4ca · Nov 4, 2025 · 4 filesMessage 83 · StrongInformational 15Details
Commit message · TheCharlatan

kernel: Add function for copying block data to C header

This adds a function for streaming bytes into a user-owned data
structure.

Use it in the tests for verifying the implementation of the validation
interface's `BlockChecked` method.

83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI analysis · Informational 15/100

This commit adds a new public API function that lets users serialize a Bitcoin block to raw bytes through a callback. It also adds a C++ wrapper method and uses both in existing tests to verify that the validation interface reports the same block bytes that were originally submitted. There is no security fix here—this is a feature addition for testing and API completeness.

Lower-prioritykernel: Add functions for the block validation state to C headerby TheCharlatan · b30e15f4 · Nov 4, 2025 · 4 filesMessage 73 · AdequateInformational 19Details
Commit message · TheCharlatan

kernel: Add functions for the block validation state to C header

These allow for the interpretation of the data in a `BlockChecked`
validation interface callback. The validation state passed through
`BlockChecked` is the source of truth for the validity of a block (the
mode). It is
also useful to get richer information in case a block failed to
validate (the result).

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
defensive validation
AI analysis · Informational 19/100

This commit adds new read-only functions to Bitcoin Core's public kernel library so outside programs can ask 'Was this block valid?' and 'Why was it invalid?' when they receive a callback. It does not change any validation rules, fix a bug, or alter how Bitcoin itself processes blocks. It is a straightforward API expansion with no apparent security relevance.

Lower-prioritykernel: Add interrupt function to C headerby TheCharlatan · d27e2775 · Nov 4, 2025 · 4 filesMessage 68 · AdequateInformational 15Details
Commit message · TheCharlatan

kernel: Add interrupt function to C header

Calling interrupt can halt long-running functions associated with
objects that were created through the passed-in context.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 15/100

This commit adds a new public API function that lets outside callers request an interruption of long-running Bitcoin Core kernel operations such as block processing or reindexing. It is a straightforward feature addition with no security-relevant bug fix or behavior change to existing code.

Lower-prioritykernel: Add validation interface to C headerby TheCharlatan · aa262da7 · Nov 4, 2025 · 4 filesMessage 80 · StrongInformational 15Details
Commit message · TheCharlatan

kernel: Add validation interface to C header

This adds the infrastructure required to process validation events. For
now the external validation interface only has support for the
`BlockChecked` , `NewPoWValidBlock`, `BlockConnected`, and
`BlockDisconnected` callback. Support for the other internal
validation interface methods can be added in the future.

The validation interface follows an architecture for defining its
callbacks and ownership that is similar to the notifications.

The task runner is created internally with a context, which itself
internally creates a unique ValidationSignals object. When the user
creates a new chainstate manager the validation signals are internally
passed to the chainstate manager through the context.

A validation interface can register for validation events with a
context. Internally the passed in validation interface is registerd with
the validation signals of a context.

The callbacks block any further validation execution when they are
called. It is up to the user to either multiplex them, or use them
otherwise in a multithreaded mechanism to make processing the validation
events non-blocking.

I.e. for a synchronous mechanism, the user executes instructions
directly at the end of the callback function:

```mermaid
sequenceDiagram
participant V as Validation
participant C as Callback
V->>C: Call callback
Note over C: Process event (blocks)
C-->>V: Return
Note over V: Validation resumes

```

To avoid blocking, the user can submit the data to e.g. a worker thread
or event manager, so processing happens asynchronously:

```mermaid
sequenceDiagram
participant V as Validation
participant C as Callback
participant W as Worker Thread
V->>C: Call callback
C->>W: Submit to worker thread
C-->>V: Return immediately
Note over V: Validation continues
Note over W: Process event async
```

80/100 · StrongMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI analysis · Informational 15/100

This commit adds a new public programming interface to the Bitcoin Core kernel library so that external programs can receive notifications about block validation events (for example, when a block is checked, connected, or disconnected). It is a feature addition, not a fix for a security flaw. There is no indication in the commit or supplied references that this change addresses a vulnerability or security incident.

Lower-prioritykernel: Add import blocks function to C headerby TheCharlatan · 1976b13b · Nov 4, 2025 · 4 filesMessage 68 · AdequateInformational 20Details
Commit message · TheCharlatan

kernel: Add import blocks function to C header

Add `btck_import_blocks` to import block data and rebuild indexes. The
function can either reindex all existing block files if the indexes were
previously wiped through the chainstate manager options, or import
blocks from specified file paths.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 20/100

This commit adds a new public function to Bitcoin Core's kernel library that lets callers import block files or trigger a reindex. It is a feature addition that exposes existing internal reindex/import logic through a C API. There is no direct evidence in the commit that it fixes a security bug; it appears to be ordinary API expansion for the libbitcoinkernel project.

Lower-prioritykernel: Add chainstate load options for in-memory dbs in C headerby TheCharlatan · a747ca1f · Nov 4, 2025 · 4 filesMessage 73 · AdequateInformational 19Details
Commit message · TheCharlatan

kernel: Add chainstate load options for in-memory dbs in C header

This allows a user to run the kernel without creating on-disk files for
the block tree and chainstate indexes. This is potentially useful in
scenarios where the user needs to do some ephemeral validation
operations.

One specific use case is when linearizing the blocks on disk. The block
files store blocks out of order, so a program may utilize the library
and its header to read the blocks with one chainstate manager, and then
write them back in order, and without orphans, with another chainstate
maanger. To save disk resources and if the indexes are not required once
done, it may be beneficial to keep the indexes in memory for the
chainstate manager that writes the blocks back again.

73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 19/100

This commit adds new configuration options to the Bitcoin Core kernel library that let developers run the blockchain validation indexes entirely in memory instead of writing them to disk. It is a feature addition for ephemeral or resource-saving use cases, not a security fix or vulnerability. There is no indication in the commit that it addresses a security bug.

Lower-prioritykernel: Add options for reindexing in C headerby TheCharlatan · 070e7773 · Nov 4, 2025 · 4 filesMessage 68 · AdequateInformational 18Details
Commit message · TheCharlatan

kernel: Add options for reindexing in C header

Adds options for wiping the chainstate and block tree indexes to the
chainstate manager options. In combination and once the
`*_import_blocks(...)` function is added in a later commit, this
triggers a reindex. For now, it just wipes the existing data.

68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
AI analysis · Informational 18/100

This commit adds a new configuration option to the Bitcoin Core kernel library that lets a caller choose to delete (wipe) the block database, the chainstate database, or both when starting up. It is intended to support a future reindex feature. The change is purely additive: it exposes existing internal wipe flags through the public C API and adds tests. There is no bug fix, no reported vulnerability, and no evidence this introduces a security issue on its own.

AI review queuedkernel: Add block validation to C headerby TheCharlatan · ad80abc7 · Nov 4, 2025 · 5 filesMessage 78 · AdequateInformational 20Details
Commit message · TheCharlatan

kernel: Add block validation to C header

The added function allows the user process and validate a given block
with the chainstate manager. The *_process_block(...) function does some
preliminary checks on the block before passing it to
`ProcessNewBlock(...)`. These are similar to the checks in the
`submitblock()` rpc.

Richer processing of the block validation result will be made available
in the following commits through the validation interface.

The commits also adds a utility for deserializing a `CBlock`
(`kernel_block_create()`) that may then be passed to the library for
processing.

The tests exercise the function for both mainnet and regtest. The
commit also adds the data of 206 regtest blocks (some blocks also
contain transactions).

78/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Why it was queued
defensive validationsecond-pass: broader security terminology
AI analysis · Informational 20/100

This commit adds a new public library API to Bitcoin Core's 'kernel' module that lets outside programs create block objects from raw bytes and ask the chainstate manager to process/validate them. It is a feature addition, not a fix. The code mostly forwards work to existing internal validation routines and adds tests using 206 regtest blocks. There is no direct evidence in the commit that this introduces a security vulnerability, but any new block-processing surface can affect consensus-critical code paths.