Bitcoin Core Github
43 subscribers
122K links
Download Telegram
πŸ’¬ l0rinc commented on pull request "validation: reduce persisted UTXO set size by prioritizing positive lookups (RFC)":
(https://github.com/bitcoin/bitcoin/pull/33817#issuecomment-3503228588)
> I am not sure if touching validation.cpp is worth it

It's not about IBD necessarily, but reduced disk footprint and adjusting the database to resemble the usage more closely:
> Removing the LevelDB bloom filters slightly speeds up present-key workloads (~11% faster AssumeUTXO load) and reduces the on-disk chainstate size by ~2% because filter blocks are not stored.
πŸ’¬ hebasto commented on pull request "ci: Add IWYU job":
(https://github.com/bitcoin/bitcoin/pull/33810#issuecomment-3503238765)
Rebased on top of the merged bitcoin/bitcoin#33818.
πŸ’¬ l0rinc commented on issue "malloc: Failed to allocate segment from range group - out of space":
(https://github.com/bitcoin/bitcoin/issues/33806#issuecomment-3503242687)
Yeah, doing a `git bisect` to figure out when this was introduced:

<details>
<summary>Details</summary>

```
git checkout da6f041e39efaf64a84b748556e321021ec1f756^
...
rm -rf build && cmake -B build -DBUILD_BENCH=OFF -DENABLE_IPC=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo && \
cmake --build build -j$(nproc)
...
2025-11-07T15:33:59Z UpdateTip: new best=0000000000000000002ad1de1011dd699820b20a24411d92cf801c6b5012395d height=497674 version=0x20000000 log2_work=87.590254 tx=278248302 date='2017-12-05T06
...
πŸ€” dergoegge reviewed a pull request: "doc: reference fuzz coverage steps in quick-start"
(https://github.com/bitcoin/bitcoin/pull/33536#pullrequestreview-3434708080)
Concept ACK - Seems reasonable to mention this in the actual fuzzing docs.
πŸ’¬ dergoegge commented on pull request "doc: reference fuzz coverage steps in quick-start":
(https://github.com/bitcoin/bitcoin/pull/33536#discussion_r2504177836)
nit:

```suggestion
For source-based `coverage reports`, see [developer notes](/doc/developer-notes.md#compiling-for-fuzz-coverage).
```
βœ… dergoegge closed an issue: "fuzz: Use-of-uninitialized-value in evutil_inet_pton"
(https://github.com/bitcoin/bitcoin/issues/27975)
πŸ’¬ dergoegge commented on issue "fuzz: Use-of-uninitialized-value in evutil_inet_pton":
(https://github.com/bitcoin/bitcoin/issues/27975#issuecomment-3503271376)
Closing since

* I'm not sure if this is still a thing
* I don't really care to fix it and clearly nobody else does either
* In any case, it's an upstream issue and the oss fuzz issue exists as well
πŸ’¬ Sjors commented on issue "Mining interface tracking issue":
(https://github.com/bitcoin/bitcoin/issues/33777#issuecomment-3503279705)
> Previously, they could access it with a single call, but after what you propose it will requires two calls.

Clients are already expect to call `getHeader()` to get the header. Combined with `getCoinbaseMerklePath()` and `getCoinbase()` lets them construct a template without having to download the full block.

In Stratum v2 clients only call `getBlock()` if the pool wants to inspect their proposed template (see `RequestTransactionData.Success` in sv2-tp). This happens later and currently invol
...
πŸ’¬ maflcko commented on issue "fuzz: Use-of-uninitialized-value in evutil_inet_pton":
(https://github.com/bitcoin/bitcoin/issues/27975#issuecomment-3503304087)
It was reproducible in our CI config once: https://issues.oss-fuzz.com/issues/42521668#comment5

But yeah, not sure if anyone cares.
πŸ’¬ purpleKarrot commented on pull request "cmake: Create subdirectories in build tree in advance":
(https://github.com/bitcoin/bitcoin/pull/32773#issuecomment-3503306025)
My position is that code like this is **not** something that belongs in a `CMakeLists.txt` file.

Ideally, tests should have their environment set up in a way that they find necessary files in the source tree, without any symlinks or copies.

If directories/symlinks are needed by tests that are executed with ctest, a temporary workaround could be to create them in a test fixture, like I mentioned [here](https://github.com/bitcoin/bitcoin/pull/32773#issuecomment-2999638262).

As long as fun
...
πŸ’¬ Sjors commented on pull request "mining: add getCoinbase()":
(https://github.com/bitcoin/bitcoin/pull/33819#discussion_r2504267008)
> do you plan on deprecating it first and then removing it in a later release?

No, because the interface is marked experimental I think it's fine to drop it in any release we want. That might be as soon as v31, but we can also do it later.

> your master should be in sync with master

`sv2-tp` is used by people who only run v30, so it has to support both master and v30.

It can already handle _new_ methods by just trying them and falling back to old methods when they're missing.

Rec
...
πŸ€” hodlinator reviewed a pull request: "validation: ensure assumevalid is always used during reindex"
(https://github.com/bitcoin/bitcoin/pull/31615#pullrequestreview-3364452726)
Agree this issue would be good to fix!

However also agree with https://github.com/bitcoin/bitcoin/pull/31615#pullrequestreview-3403430467 that logging a warning/error and doing some kind of higher level change instead of patching things up here would be preferable.

#### Higher level proposal

Add an earlier phase for `-reindex` where it rebuilds the headers chain/`BlockIndex` from blocks on disk, and if we're still below minimumchainwork, perform headerssync to populate the index prior to this
...
πŸ’¬ hodlinator commented on pull request "validation: ensure assumevalid is always used during reindex":
(https://github.com/bitcoin/bitcoin/pull/31615#discussion_r2502875481)
(Prior to this PR, all `if`'s from here on down expected the current block to be an ancestor of the assumed valid block).
πŸ’¬ hodlinator commented on pull request "validation: ensure assumevalid is always used during reindex":
(https://github.com/bitcoin/bitcoin/pull/31615#discussion_r2503080190)
nit: if we keep these, `const bool` might be nicer, although the scope is small.
πŸ’¬ hodlinator commented on pull request "validation: ensure assumevalid is always used during reindex":
(https://github.com/bitcoin/bitcoin/pull/31615#discussion_r2451027360)
nit: Few tests report success, the test framework always outputs "Tests successful" if the test(s) it runs succeed already, so seems unnecessary.
```
β‚Ώ git grep 'self.log.info("Success")'
test/functional/feature_pruning.py: self.log.info("Success")
test/functional/feature_pruning.py: self.log.info("Success")
test/functional/feature_pruning.py: self.log.info("Success")
test/functional/feature_pruning.py: self.log.info("Success")
test/functional/feature_pruning.p
...
πŸ’¬ hodlinator commented on pull request "validation: ensure assumevalid is always used during reindex":
(https://github.com/bitcoin/bitcoin/pull/31615#discussion_r2503513923)
remark:
Didn't get this at first - if *our block is an ancestor of `AssumedValidBlock()`*, why would either of:
a) it not being part of the best header chain
b) the best header chain being below minimum chainwork
...make us turn on script checking for this assumevalid ancestor?

It's been this way since assumevalid was introduced #9484 / e440ac7ef3b6f3ad1cd8fc7027cece40413202d9.

I guess a) could be to cover the case where a node runner is instructed by a malicious party to run with an `
...
πŸ’¬ Sjors commented on issue "Mining interface tracking issue":
(https://github.com/bitcoin/bitcoin/issues/33777#issuecomment-3503342616)
See inline discussion in https://github.com/bitcoin/bitcoin/pull/33819#discussion_r2504009667 about whether we should just go ahead and make breaking changes now, or pile them up until there's a bigger / more important breaking change.
πŸ’¬ ismaelsadeeq commented on pull request "mining: add getCoinbase()":
(https://github.com/bitcoin/bitcoin/pull/33819#issuecomment-3503428587)
> Recent versions of sv2-tp all work against v30, so I haven't had to push people to switch to a newer version either. But we start making breaking changes, then I have to start instructing users of Bitcoin Core master to use specific newer versions of sv2-tp.

Thanks for the context. I still think it’s fine to do it together. You can have a major of your `sv2-tp` that works with `v30` and minor releases that includes additional improvements that the major releases that is compatible with v30.
...
πŸ’¬ ismaelsadeeq commented on pull request "mining: add getCoinbase()":
(https://github.com/bitcoin/bitcoin/pull/33819#discussion_r2504357664)
Thanks for the context. I still think it’s fine to do it together. You can have a major of your sv2-tp that works with v30 and minor releases that includes additional improvements that the major releases that is compatible with v30.
sv2-tp master should just be in sync with bitcoin/bitcoin people that want to run that should build master from source.
πŸ’¬ maflcko commented on pull request "cmake: Create subdirectories in build tree in advance":
(https://github.com/bitcoin/bitcoin/pull/32773#issuecomment-3503504071)
> Ideally, tests should have their environment set up in a way that they find necessary files in the source tree, without any symlinks or copies.

I think there is no explanation in the code, but the reason why the copies/symlinks are created is that it keeps the source dir clean of `.pyc` files.



> If directories/symlinks are needed by tests that are executed with ctest, a temporary workaround could be to create them in a test fixture, like I mentioned [here](https://github.com/bitcoin
...