Bitcoin Core Github
42 subscribers
127K links
Download Telegram
πŸ’¬ l0rinc commented on pull request "blocks: force hash validations on disk read":
(https://github.com/bitcoin/bitcoin/pull/32638#discussion_r2142496127)
I'm not sure I fully understand the comment here. Are you saying that it's obvious that this is always true? if so, isn't that kinda' the role of an assert though :)?

If you think it's ridiculously trivial (though you had to look inside the methods to understand the relation, this assertion was meant to avoid doing that, since I'm replacing one with the other in the code, this should help reviewers understand why that's safe).

So here it's meant to document why subsequent code now relies o
...
πŸ’¬ m3dwards commented on pull request "test: enabling wallet migration functional test on windows":
(https://github.com/bitcoin/bitcoin/pull/32219#discussion_r2142521186)
It was only a problem on Windows. Made a note of that.
πŸ’¬ m3dwards commented on pull request "test: enabling wallet migration functional test on windows":
(https://github.com/bitcoin/bitcoin/pull/32219#discussion_r2142522767)
Cleaner, taken, thanks!
πŸ’¬ m3dwards commented on pull request "test: enabling wallet migration functional test on windows":
(https://github.com/bitcoin/bitcoin/pull/32219#discussion_r2142525731)
I was assuming UTF-8 support as yeah they always run with UTF-8 on but in theory this could be run alone without so I just changed the symbol. Thanks.
πŸ’¬ m3dwards commented on pull request "test: enabling wallet migration functional test on windows":
(https://github.com/bitcoin/bitcoin/pull/32219#discussion_r2142528061)
Good spot, shame it's more verbose but it's all easy code to understand so taken. Thanks for not only noticing but also giving an alternative.
πŸ’¬ m3dwards commented on pull request "test: enabling wallet migration functional test on windows":
(https://github.com/bitcoin/bitcoin/pull/32219#discussion_r2142528523)
Done.
πŸ’¬ l0rinc commented on issue "Networking tests fail on emulated big-endian systems":
(https://github.com/bitcoin/bitcoin/issues/31812#issuecomment-2966406017)
I reran to verify (only on Mac, my Hetzner boxes are busy):
```bash
docker run --platform linux/s390x -it ubuntu:latest /bin/bash
```
and inside I did something like:
```bash
export DEBIAN_FRONTEND=noninteractive && apt update && apt install -y git build-essential cmake ccache pkg-config libevent-dev libboost-dev libzmq3-dev systemtap-sdt-dev qtbase5-dev qttools5-dev qttools5-dev-tools libqrencode-dev libsqlite3-dev python3 \
cd /mnt && git clone --depth=1 https://github.com/bitcoin/bitcoin.git
...
πŸ’¬ Sjors commented on pull request "Add bitcoin-{node,gui} to release binaries for IPC":
(https://github.com/bitcoin/bitcoin/pull/31802#discussion_r2142554412)
It seems unavoidable to change ci in the same commit.

Previous iterations were changing `BUILD_CONFIG`, hence the formatting change. But I'll just drop them now.
πŸ’¬ Sjors commented on pull request "Add bitcoin-{node,gui} to release binaries for IPC":
(https://github.com/bitcoin/bitcoin/pull/31802#discussion_r2142559690)
I did keep the Windows mention.
πŸ€” janb84 reviewed a pull request: "test: round difficulty and networkhashps"
(https://github.com/bitcoin/bitcoin/pull/32725#pullrequestreview-2920953165)
ACK 578ea3eedb285519762087a4b27d953d8f61667f

- Code review βœ…
- compiled & tested βœ…

The PR changes test to use a more reasonable rounded difficulty and networkhashps to remove false positives in testing.
πŸ’¬ hodlinator commented on pull request "blocks: force hash validations on disk read":
(https://github.com/bitcoin/bitcoin/pull/32638#discussion_r2142647316)
The pseudo-code here is roughly:
```diff
value = lookup(key);
if (!value) {
return;
}
+ assert(value belongs to key);
```
Grepped the codebase for calls to `LookupBlockIndex()` and couldn't find any where we `assert` that the returned index's hash matches what we looked it up by. So this a departure from the current level of defensiveness we use in the project. Heck, */src/index/coinstatsindex.cpp* and */src/kernel/coinstats.cpp* don't even check against a null return value.
...
πŸ’¬ TheCharlatan commented on pull request "p2p: avoid traversing blocks (twice) during IBD for no reason":
(https://github.com/bitcoin/bitcoin/pull/32730#discussion_r2142663267)
Shouldn't checking `role == ChainstateRole::BACKGROUND || m_chainman.IsInitialBlockDownload()` be good enough? I realize it is racy, the condition may already be false even when the last few ibd blocks are still being processed, but I don't think that really matters here. We also use it similarly in the `BlockChecked` method.
πŸ‘ hodlinator approved a pull request: "test: enabling wallet migration functional test on windows"
(https://github.com/bitcoin/bitcoin/pull/32219#pullrequestreview-2921071060)
ACK f4e259b31f5785190c4912975173c5025dfe349c

### Concept

Enables more functional tests along with script for fetching previous release binaries on Windows. Removes script support for building previous releases from source on all platforms, which is arguably tricky as it requires having the correct (versions of) dependencies available, and seems to not be well used.

### Changes since previous review

Incorporates feedback from https://github.com/bitcoin/bitcoin/pull/32219#pullrequestre
...
πŸ’¬ hodlinator commented on pull request "test: enabling wallet migration functional test on windows":
(https://github.com/bitcoin/bitcoin/pull/32219#discussion_r2142693766)
Thanks for taking my suggestion!
πŸ’¬ l0rinc commented on pull request "blocks: force hash validations on disk read":
(https://github.com/bitcoin/bitcoin/pull/32638#discussion_r2142779638)
Regardless of the implementation, what I was documenting here was the safety of changing one value to the other, without having to understand the details of why. If I touch again, I don't mind changing this, if other reviewer agree it's overly pedantic. In other cases, I have explicitly removed asserts like this in the next commit, the signal that this value was explicitly checked before.
πŸ“ hodlinator opened a pull request: "wallet: Warn upon failing to scan directory"
(https://github.com/bitcoin/bitcoin/pull/32736)
Make wallet DB detect and report failure to scan wallet directory.

Found while reviewing: https://github.com/bitcoin/bitcoin/pull/31410#pullrequestreview-2604068753
πŸ’¬ l0rinc commented on pull request "p2p: avoid traversing blocks (twice) during IBD for no reason":
(https://github.com/bitcoin/bitcoin/pull/32730#discussion_r2142790766)
That's why I asked for !m_initial_sync_finished as well.
If the race is biased towards reenabling it too early (rather than later), I agree that it should be fine.
πŸ’¬ Muniru0 commented on pull request "docs: add guidance on initialism capitalisation in PascalCase identifiers.":
(https://github.com/bitcoin/bitcoin/pull/32720#issuecomment-2966852048)
To balance attribution with long-term stability, I recommend that we:

- Include the external link to the original rationaleβ€”but accompany it with a clear disclaimer (e.g., β€œNote: this resource may change or become unavailable over time”).

- Embed a succinct, self-contained summary of the policy’s reasoning directly in the developer notes, so that the purpose and benefits of the convention remain immediately accessible even if the external link breaks.

Also take into consideration the `n
...
πŸ’¬ fanquake commented on pull request "wallet: Warn upon failing to scan directory":
(https://github.com/bitcoin/bitcoin/pull/32736#issuecomment-2966893310)
https://cirrus-ci.com/task/6556243914915840?logs=ci#L4845:
```bash
[09:50:58.842] AssertionError: [node 0] Expected messages "['Error scanning directory entries under']" does not partially match log:
```
πŸ’¬ TheCharlatan commented on pull request "p2p: avoid traversing blocks (twice) during IBD for no reason":
(https://github.com/bitcoin/bitcoin/pull/32730#discussion_r2142866210)
furszy reminded me that BlockChecked is run synchronously, so I don't think that comparison makes sense after all. I guess this comment can be resolved.