Hello ๐ folks, Iโm Kevkevin. Iโm an open-source developer and reporter for Insider Edition. Last week I reviewed several pull requests from the Bitcoin Core repo. A malformed JSON-RPC 2.0 request now gets HTTP 200, with the error in the body. A node that never configured Tor stopped writing a warning on every failed control-port reconnect.
Thursdayโs #bitcoin-core-dev meeting had no pre-proposed topics. sedited walked through a validation design whose reindex-chainstate time is no longer dominated by UTXO-set updates, and fanquake asked for opinions on the AssumeUTXO removal demo.
Merged PRโs
Every week, several changes are officially added to Bitcoin Core. This week, 33 changes were merged. Here are some I found interesting this week.
Matthew Zipkin found this while reviewing #36642. Bitcoin Core still answers a legacy JSON-RPC failure with an HTTP error. That behavior was never in a ratified spec, and the project keeps it for the legacy protocol. A request can name version 2.0 and still be malformed. In that case the spec wants HTTP 200 OK and the error object in the body.
JSONErrorReply assumed it was looking at a legacy request. The failing check is jreq.m_json_version != JSONRPCVersion::V2. On a debug build, with RPC authentication, that aborts the node. A release build skips the abort and returns HTTP 400 with a 2.0 error body. The fix lives in JSONErrorReply, so any error thrown after the version is known takes the 2.0 path. A second bug came along with it: a malformed request with no id was classified as a notification, and a notification gets no body. parse() now decides what a notification is, for a single request and for a batch element. An invalid request with no id gets an error reply with โidโ: null. A valid notification still gets HTTP 204 and an empty body.
Vinicius Cestari picked up the logging change that landed with eae193e750 in v32. Before that commit, TorControlConnection::Connect only started the socket and returned true. A refusal showed up later, and only under -debug=tor. After it, every failed reconnect wrote three lines:
connect() to 127.0.0.1:9051 failed after wait: Connection refused (111)
[warning] tor: Error connecting to address 127.0.0.1:9051
[warning] tor: Initiating connection to Tor control port 127.0.0.1:9051 failed
On a default node with no Tor, that is 18 lines in debug.log every hour.
AppInitMain now records whether Tor control was explicitly configured: -listenonion, -torcontrol, or -torpassword passed to IsArgSet. If the user set one of those options, the failure goes through LogWarnThenDebug(BCLog::TOR, ...), so the first miss is a warning and the repeats are debug. If none of them is set, the line is LogDebug under BCLog::TOR. The second warning is gone. disconnected_cb logs Lost connection to Tor control port, no longer advertising service at info when the node still intends to reconnect. Shutdown clears m_reconnect first, so stopping the node with a live onion service does not log that line.
There are always changes being updated and reviewed in real-time. Here are some notable PRโs that are still up and looking for reviews.
It is a picture of what deleting AssumeUTXO would remove, written so the smaller follow-ups have something concrete to point at. The pull request says the decision to remove it is still open, and that this branch is a reference. Multiple chainstates leak into ordinary validation: candidate sets, notifications, downloads, pruning, cache allocation, database lifetimes, and locks. The writeup of the October 2026 Core Dev meeting, in the pull request, is that background validation leaves the node in an awkward trust state, and that adoption has not matched the hope in #35054. Ordinary IBD is also faster after #35295, with pruneassumevalid still ahead. fanquake told Thursdayโs channel that conceptual agreement is forming, that the last ~20 open issues are AssumeUTXO-related, and that opinions in either direction belong on the pull request. fjahr pointed at #37094, which validates an assumeutxo snapshot with a single chainstate and closes most of those issues on its own. l0rinc answered that #37094 still keeps background validation, which is the partial-trust state under discussion.
My impression was that there was rough agreement about the ambiguity background validation introduces: we trust a snapshot enough to use it immediately, but describe that trust as temporary until the same node finishes checking history.
IRC meeting notes
Every week on Thursday, there is an IRC meeting. Here are some short notes from that meeting.
๐ณ๐ท๐ฎ๐ต๐ฟ: #bitcoin-core-dev Meeting: _aj_ abubakarsadiq achow101 andrewtoth b10c brunoerg cfields danielabrozzoni darosior dzxzg eugenesiegel fanquake fjahr furszy hebasto hodlinator instagibbs janb84 jarolrod johnny9dev jonatack josie jurraca kanzure kevkevin laanwj lightlike l0rinc maflcko marcofleon maxedw Murch pinheadmz provoostenator pseudoramdom ryanofsky sdaftuar sedited sipa sliv3r__ sr_gi stickies-v stringintech theStack vasild willcl-ark
๐ณ๐ท๐ฎ๐ต๐ฟ: There are no pre-proposed meeting topics this week. Any last minute ones to add?
๐ณ๐ท๐ฎ๐ต๐ฟ: I guess we can get started with the WGs
--- Topic 1 ---
๐ณ๐ท๐ฎ๐ต๐ฟ: #topic Fuzzing WG Update (eugenesiegel, marcofleon)
๐บ๐ฎ๐ฟ๐ฐ๐ผ๐ณ๐น๐ฒ๐ผ๐ป: no update this week, Iโll give one next week
--- Topic 2 ---
๐ณ๐ท๐ฎ๐ต๐ฟ: #topic Kernel WG Update (sedited)
๐๐ฒ๐ฑ๐ถ๐๐ฒ๐ฑ: Iโve been working some more on an alternative validation architecture. I think it is now at a point, where Iโd like to socialize its concepts a bit.
๐๐ฒ๐ฑ๐ถ๐๐ฒ๐ฑ: if people here are interested in it, this benchcoin pull request has a vibecoded implementation: https://github.com/bitcoin-dev-tools/benchcoin/pull/201
๐ณ๐ท๐ฎ๐ต๐ฟ: do you have a tldr?
๐ณ๐ท๐ฎ๐ต๐ฟ: to make people curious...
๐๐ฒ๐ฑ๐ถ๐๐ฒ๐ฑ: the last commit in there is its design notes, which can be also be fed to an LLM on their own. I wouldnโt recommend people to read the changes or the notes themselves.
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: Iโve benchmarked this branch a few times. On my Ubuntu box, -reindex-chainstate to 975k in ~11 min last I checked
๐๐ฒ๐ฑ๐ถ๐๐ฒ๐ฑ: For humans, I wrote a blog post over here: https://thecharlatan.ch/Validation-II/
๐ฒ๐๐ด๐ฒ๐ป๐ฒ๐๐ถ๐ฒ๐ด๐ฒ๐น: is this related to what you did with TLA+ at all?
๐น๐ฌ๐ฟ๐ถ๐ป๐ฐ: we have a few very cool optimization suggestions now, love it
๐บ๐ฎ๐ฟ๐ฐ๐ผ๐ณ๐น๐ฒ๐ผ๐ป: 11 min?
๐บ๐ฎ๐ฟ๐ฐ๐ผ๐ณ๐น๐ฒ๐ผ๐ป: wow
๐๐ฒ๐ฑ๐ถ๐๐ฒ๐ฑ: I also had my clankers model the architecture and its interactions with other components with TLA+, yes.
๐๐ฒ๐ฑ๐ถ๐๐ฒ๐ฑ: from what I can tell, this pretty much removes the bottleneck from utxo set manipulation. On my machine, I can do a reindex-chainstate in nine minutes with it.
๐๐ฒ๐ฑ๐ถ๐๐ฒ๐ฑ: If I add some allocator tricks and optimise the serialisation code, it can do a reindex-chainstate in six minutes.
๐๐ฒ๐ฑ๐ถ๐๐ฒ๐ฑ: which I think is a good indication, that there is no clear floor or bottleneck with it.
๐๐ฒ๐ฑ๐ถ๐๐ฒ๐ฑ: Iโm going to start working on breaking out some of its smaller pieces (some of which basically already exist in current pull requests).
๐น๐ฌ๐ฟ๐ถ๐ป๐ฐ: nice, looking forward to it
๐๐๐ฟ๐ถ๐ป๐ด๐ถ๐ป๐๐ฒ๐ฐ๐ต: i did reindex-chainstate in 28 minutes - using 12 vcores vs the 32 vcores in the blog post; so i guess it makes sense
๐๐ฒ๐ฑ๐ถ๐๐ฒ๐ฑ: thatโs all for now from me, except if people have some questions.
๐บ๐ฎ๐ฟ๐ฐ๐ผ๐ณ๐น๐ฒ๐ผ๐ป: good stuff
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: Conceptually I am in agreement with the direction, especially if it means we can sidestep the current state of affairs, which is many incremental improvements/refactors to the current model, which would still not seem to be leading to the results shown here (even if there are some smaller changes along the way to this).
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: I think this coupled with a number of networking changes, (validation decouple, chacha20 speedups etc), could lead to some very interesting *real* (network) IBD results
๐น๐ฌ๐ฟ๐ถ๐ป๐ฐ: it would also go well with the pruneassumevalid proposal
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: Probably has some implications for other fast sync /IBD models in Core going forward. How fast is fast-enough? Donโt need to figure that out here
๐ณ๐ท๐ฎ๐ต๐ฟ: any more comments on this topic?
--- Topic 3 ---
๐ณ๐ท๐ฎ๐ต๐ฟ: #topic QA WG Update (brunoerg)
๐ฏ๐ฟ๐๐ป๐ผ๐ฒ๐ฟ๐ด: no update this week
--- Topic 4 ---
๐ณ๐ท๐ฎ๐ต๐ฟ: #topic addr-relay WG update (stratospher)
๐๐๐ฟ๐ฎ๐๐ผ๐๐ฝ๐ต๐ฒ๐ฟ: Weโve been analysing addrman data on a node which ran the branch with changes in isTerrible logic (from https://bnoc.xyz/t/address-relay-under-stress/163/8). Itโs been running for a couple of months - so we can see how the addrman behaved during the spam and after the spam wave finished. Our node wasnโt affected by spam as much as other nodes on the network. But we want to improve some interactions this branch has with the tried table. so still not fully done yet.
๐๐๐ฟ๐ฎ๐๐ผ๐๐ฝ๐ต๐ฒ๐ฟ: also relaying an update from b10c.
๐๐๐ฟ๐ฎ๐๐ผ๐๐ฝ๐ต๐ฒ๐ฟ: โIโve been working on a writeup of how self-announcing home-nodes on ISPs that cut connections and rotate IPs every 24h essentially spam our addrman new tables with unreachable IPs. Weโve been discussing how to fix this, but I think having a writeup of the problem would be good. did not manage to finish it before the meeting. Will share a link here later.โ from b10c
๐๐ฒ๐ฑ๐ถ๐๐ฒ๐ฑ: nice
๐ณ๐ท๐ฎ๐ต๐ฟ: Thanks, thatโs it, stratospher?
๐๐๐ฟ๐ฎ๐๐ผ๐๐ฝ๐ต๐ฒ๐ฟ: yes!
--- Topic 5 ---
๐ณ๐ท๐ฎ๐ต๐ฟ: Anything else to discuss?
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: I have a couple quick items
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: Some Conceptual Agreement seems to be forming in #36598
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: I think if you have opinions in either direction, itโs a good time to leave them
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: Also it looks like the last ~20 or so open issues are now also AssumeUTXO related
๐ณ๐ท๐ฎ๐ต๐ฟ: See also #37094 for an alternative that closes most of these out of the box
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: Bit of a followup to last week, we dropped virtus crawler in #36818
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: Will proposed adding his in #36997, if anyone is for/against that, good time to comment
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: Also related, apparently achow is having DNS seed issues: #37041
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: Wanted to highlight the v33 milestone: https://github.com/bitcoin/bitcoin/milestone/86
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: Good number of (I think important) items accumulating on there at the moment
๐ฑ๐ฎ๐ฟ๐ผ๐๐ถ๐ผ๐ฟ: fjahr, ASmap people: whatโs the thinking on turning -asmap on by default? Should it be considered for 33?
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: if anyone is looking for something new to review
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: Somewhat tangential to Core, but thereโs discussion about removing the Autotools build system from secp256k1: https://github.com/bitcoin-core/secp256k1/issues/2012
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: This is still used by most downstream packagers (see thread), but if anyone happens to maintain any of those/wants to help migrate one to CMake, now might be a good time
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: (which would help figure out any blockers)
๐ณ๐ท๐ฎ๐ต๐ฟ: darosior: We can discuss it, sure, wasnโt top of my mind lately
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: Think thatโs about it
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: fjahr: if thereโs a relevant issue, can put it on the milestone, so it doesnโt get lost
๐น๐ฌ๐ฟ๐ถ๐ป๐ฐ: quick note from me since I havenโt been active on IRC in the past few weeks: worked on security scanning lately, investigating pruning and witnesless block optimizations, some asmap fixes and optimizations, and skipping more check in assumevalid that arenโt related to UTXO set building, dug deeper into full and partial assumeutxo and background validation and rpc removal, investigated and proposed fixed for a few index reorg and crash scenarios - and lots of difficult reviews
๐ณ๐ท๐ฎ๐ต๐ฟ: I can make an issue tomorrow if nobody else
๐น๐ฌ๐ฟ๐ถ๐ป๐ฐ: about the recent assumeutxo removal alternative by fjahr: #37094 seems to keep background validation which was one of the main concerns, that weโre in a limbo-state of partial trust that weโre not comfortable with - we can continue discussing it in one of the PRs
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: #37095
๐ฑ๐ฎ๐ฟ๐ผ๐๐ถ๐ผ๐ฟ: sedited: cool stuff. Will read the blog post. Definitely valuable to see a demonstration that the UTxO set based approach does not impose more synchronisation bottlenecks, thatโs surprising (and interesting!) to me. Wonder how much of that translates into โtherefore Core should adopt itโ
๐ฑ๐ฎ๐ฟ๐ผ๐๐ถ๐ผ๐ฟ: fjahr: ok, no particular rush, was just checking if i had missed some discussions
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: Actually. If anyone want to get a commit in LLVM. We just worked around a false positive, that probably needs fixing upstream, see #37047 & https://github.com/bitcoin/bitcoin/pull/37047
๐ฑ๐ฎ๐ฟ๐ผ๐๐ถ๐ผ๐ฟ: Now that we ship it, we may as well try and rip the benefits
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: s/that 2nd link/ https://github.com/google/oss-fuzz/pull/16733
๐ฑ๐ฎ๐ฟ๐ผ๐๐ถ๐ผ๐ฟ: Gotta run now
๐ฑ๐ฎ๐ฟ๐ผ๐๐ถ๐ผ๐ฟ: afk
๐ณ๐ท๐ฎ๐ต๐ฟ: darosior: the map building was a bit of a whack-a-mole game earlier this year but seems to have stabilized currently, that was the main annoyance that kept me from proposing it for a while
๐ณ๐ท๐ฎ๐ต๐ฟ: Thatโs it fanquake? Any more comments/topics?
๐ณ๐ฎ๐ป๐พ๐๐ฎ๐ธ๐ฒ: thatโs allReleases
There were no new releases this week.
Thank you for reading. Be sure to tune in again next week for your updates on Bitcoin Core!
If there are any comments, suggestions, or errors, do not hesitate to reach out or comment.


