Skip to content

Conversation

@Sjors
Copy link
Owner

@Sjors Sjors commented Aug 12, 2025

This tests bitcoin#31802 plus:

0fa939acfa2de9c0ded533927b337073468f770bf2d2fa6400a1976b201e8dd5  guix-build-3d552223712e/output/aarch64-linux-gnu/SHA256SUMS.part
54cb62ae4cd2be8ef3cceb5f7fb27831095a2ab567dc3b867afe42f10683192f  guix-build-3d552223712e/output/aarch64-linux-gnu/bitcoin-3d552223712e-aarch64-linux-gnu-debug.tar.gz
6f2e8f904626993e2470d9d70dac14a9d4b6d4e63c805ebfb640eb409512716c  guix-build-3d552223712e/output/aarch64-linux-gnu/bitcoin-3d552223712e-aarch64-linux-gnu.tar.gz
efa0d4f3a63196d796e30b876993455b258e7d745e7b11f05b38e16d1b1731ca  guix-build-3d552223712e/output/arm-linux-gnueabihf/SHA256SUMS.part
6ca008e7a27918d7c1ea0f89269d60e92e09b1862723a3c320483405df2c1fd3  guix-build-3d552223712e/output/arm-linux-gnueabihf/bitcoin-3d552223712e-arm-linux-gnueabihf-debug.tar.gz
891e29b15ee7938b497ba8415fba3567f385c30e7815153149ee5d7e0bc2ce9f  guix-build-3d552223712e/output/arm-linux-gnueabihf/bitcoin-3d552223712e-arm-linux-gnueabihf.tar.gz
8c1d690ed33f3148a4540469f4d23e1da22c84ee97fbfb5df17e75d354a23bc7  guix-build-3d552223712e/output/arm64-apple-darwin/SHA256SUMS.part
d47ddf2baca4cec3933a481758fea7d5426c8b2d5047cfdd02eb7ba3b3d259fe  guix-build-3d552223712e/output/arm64-apple-darwin/bitcoin-3d552223712e-arm64-apple-darwin-codesigning.tar.gz
8319e47d1f8659f5b449c7650a401a607ea3f400ced92c35dfee7349cb621d9c  guix-build-3d552223712e/output/arm64-apple-darwin/bitcoin-3d552223712e-arm64-apple-darwin-unsigned.tar.gz
ab0e1c3ee7bdbd6664ef7739d5c9a9e6076a5825700a657d567139867c03ae4e  guix-build-3d552223712e/output/arm64-apple-darwin/bitcoin-3d552223712e-arm64-apple-darwin-unsigned.zip
9ee1ecf9b19dd8adfd7be13498531c1215b3f972be031175d509e59aa4e013d1  guix-build-3d552223712e/output/dist-archive/bitcoin-3d552223712e.tar.gz
e50b207cf1f2bdb4e528185c92f13cdc4102b4396405d700d8bbf0d05fb58769  guix-build-3d552223712e/output/powerpc64-linux-gnu/SHA256SUMS.part
2e578584618d94b6ef18cbba433fc0fa29cf77834bdb26b36211a24d6aaf3d4d  guix-build-3d552223712e/output/powerpc64-linux-gnu/bitcoin-3d552223712e-powerpc64-linux-gnu-debug.tar.gz
fe458ce291a31b0156ad66a7073a23a5ccb834ab8a34d89985d4d6f48a4ebba4  guix-build-3d552223712e/output/powerpc64-linux-gnu/bitcoin-3d552223712e-powerpc64-linux-gnu.tar.gz
749f746f6b2df7d6d42ad36525415866746ab7be31dd69e2688b0c2cf9102ab2  guix-build-3d552223712e/output/riscv64-linux-gnu/SHA256SUMS.part
667dd6d24c58905f55a550283bbec5de5bff32cd493fa3399e096a21d4ee8256  guix-build-3d552223712e/output/riscv64-linux-gnu/bitcoin-3d552223712e-riscv64-linux-gnu-debug.tar.gz
dfbf322f5d949ec6680c9b41d77c57b7e416b6204a0af8e0ae2401c17e3ba49f  guix-build-3d552223712e/output/riscv64-linux-gnu/bitcoin-3d552223712e-riscv64-linux-gnu.tar.gz
4d1d923f34386c58b4c9af87065603c28ae6b55f53961d9a42fe206336a25c20  guix-build-3d552223712e/output/x86_64-apple-darwin/SHA256SUMS.part
60dfca763407accc2f48e7bfbac65d1ef28a66a4a216fe89deeeb9196d8a324c  guix-build-3d552223712e/output/x86_64-apple-darwin/bitcoin-3d552223712e-x86_64-apple-darwin-codesigning.tar.gz
57ffa3d5ff8eb0b4da4cc756e672cc445a854ea0216ec8c625db700e6fa044a5  guix-build-3d552223712e/output/x86_64-apple-darwin/bitcoin-3d552223712e-x86_64-apple-darwin-unsigned.tar.gz
f5500b1576193bfdf9de4df605c602a51055bb975d4fb99830569be6d2c55d7d  guix-build-3d552223712e/output/x86_64-apple-darwin/bitcoin-3d552223712e-x86_64-apple-darwin-unsigned.zip
f8d0a14bfa73533e45cb40dac490340976b7a6deb8078deb836a824494c1edde  guix-build-3d552223712e/output/x86_64-linux-gnu/SHA256SUMS.part
f95cff0c43ba4a5bce4065284a33b33337c11c5acc0f27cc53cc3292ea6fe663  guix-build-3d552223712e/output/x86_64-linux-gnu/bitcoin-3d552223712e-x86_64-linux-gnu-debug.tar.gz
ed7f9a788f83ea9017b3060290a24adc933ac9f188142ad31e3b063b42e81567  guix-build-3d552223712e/output/x86_64-linux-gnu/bitcoin-3d552223712e-x86_64-linux-gnu.tar.gz
35453302242c0aa1cdd8979a62fba53375797e4ddfd8073d059c98e5082aba8b  guix-build-3d552223712e/output/x86_64-w64-mingw32/SHA256SUMS.part
53a2dbc41671a68a4286fc228bc3efe4b010955ad57fc22aea11f22888b03dc2  guix-build-3d552223712e/output/x86_64-w64-mingw32/bitcoin-3d552223712e-win64-codesigning.tar.gz
1005aa9295e59aee4db77827ce0aa3cf3c7f9ac276a9f68df2a849d145f54484  guix-build-3d552223712e/output/x86_64-w64-mingw32/bitcoin-3d552223712e-win64-debug.zip
ae7fbdc7c72a3a0d802f3137af2a97054aa94883c119f4bb31d2cdabd6ef8a09  guix-build-3d552223712e/output/x86_64-w64-mingw32/bitcoin-3d552223712e-win64-setup-unsigned.exe
fad4fa5816892e42a641c10fb737105724266a3d31ef577aba8586a0210db454  guix-build-3d552223712e/output/x86_64-w64-mingw32/bitcoin-3d552223712e-win64-unsigned.zip

@Sjors
Copy link
Owner Author

Sjors commented Aug 12, 2025

I'll let this CI run finish with 1.0.1 as the minimum.

ryanofsky added a commit to bitcoin-core/libmultiprocess that referenced this pull request Aug 13, 2025
30930df build: require CapnProto 0.7.0 or better (Sjors Provoost)

Pull request description:

  Although 1.0.1. is the oldest version currently covered by Bitcoin Core's extensive CI, Debian Bookwork ships 0.9.2 and #194 introduces test coverage for even older versions. 0.7 has been required since #88.

  The CI run of Sjors/bitcoin#100 @ [3d55222](https://github.com/Sjors/bitcoin/pull/100/checks?sha=3d552223712eed88d17e5ead1ef7d1ba6fd7e89e) previously checked Bitcoin Core CI against 1.0.1 as the minimum. Lowering the minimum further should not be a problem for that CI.

ACKs for top commit:
  ryanofsky:
    Code review ACK 30930df. Planning to follow up in #194 to actually test minimum version and error if capnproto version detected is affected by CVE-2022-46149

Tree-SHA512: bed5843973c8ff1f0b2bd93efe7169824c2306097efefaace1752efeb06606df765b68b7ef50c07f5d703010c4d1b324099d6780fa0363e126d34ac1307fba1a
@Sjors Sjors force-pushed the 2025/02/ipc-yea branch 2 times, most recently from a91a1af to a12733e Compare August 13, 2025 13:37
@Sjors Sjors closed this Aug 13, 2025
Sjors pushed a commit that referenced this pull request Aug 21, 2025
The `-assumevalid` option skips script verification for a specified block and all its ancestors during Initial Block Download.
Many new users are surprised when this suddenly slows their node to a halt.
This commit adds a log message to clearly indicate when this optimization ends and full validation begins (and vice versa).

When using `-assumeutxo`, logging is suppressed for the active assumed-valid chainstate and for the background validation chainstate to avoid the confusing toggles.

-------

> cmake -B build && cmake --build build && mkdir -p demo && build/bin/bitcoind -datadir=demo -stopatheight=500 | grep 'signature validation'

```
2025-08-08T20:59:21Z Disabling signature validations at block #1 (00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048).
2025-08-08T20:59:21Z Enabling signature validations at block #100 (000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a).
2025-08-08T20:59:21Z Disabling signature validations at block bitcoin#200 (000000008f1a7008320c16b8402b7f11e82951f44ca2663caf6860ab2eeef320).
2025-08-08T20:59:21Z Enabling signature validations at block bitcoin#300 (0000000062b69e4a2c3312a5782d7798b0711e9ebac065cd5d19f946439f8609).
```
Sjors pushed a commit that referenced this pull request Aug 21, 2025
…hange

fab2980 assumevalid: log every script validation state change (Lőrinc)

Pull request description:

  The `-assumevalid` option skips script verification for a specified block and all its ancestors during Initial Block Download.
  Many new [users are surprised](bitcoin#32832) when this suddenly slows their node to a halt.
  This commit adds a log message to clearly indicate when this optimization ends and full validation begins (and vice versa).

  <details>
  <summary>Testing instructions</summary>

  The behavior can easily be tested by adding this before the new log:
  ```C++
      // TODO hack to enable/disable script checks based on block height for testing purposes
           if (pindex->nHeight < 100) fScriptChecks = false;
      else if (pindex->nHeight < 200) fScriptChecks = true;
      else if (pindex->nHeight < 300) fScriptChecks = false;
      else if (pindex->nHeight < 400) fScriptChecks = true;
  ```
  and exercise the new code with:
  ```bash
  cmake -B build && cmake --build build && mkdir -p demo && build/bin/bitcoind -datadir=demo -stopatheight=500 | grep 'signature validation'
  ```
  showing something like:
  * Disabling signature validations at block #1 (00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048).
  * Enabling signature validations at block #100 (000000007bc154e0fa7ea32218a72fe2c1bb9f86cf8c9ebf9a715ed27fdb229a).
  * Disabling signature validations at block bitcoin#200 (000000008f1a7008320c16b8402b7f11e82951f44ca2663caf6860ab2eeef320).
  * Enabling signature validations at block bitcoin#300 (0000000062b69e4a2c3312a5782d7798b0711e9ebac065cd5d19f946439f8609).

  </details>

ACKs for top commit:
  achow101:
    ACK fab2980
  ajtowns:
    crACK fab2980
  davidgumberg:
    untested crACK bitcoin@fab2980

Tree-SHA512: e90b66f7423b639356daace476942ce83e65e70466544394cbe2f15738bdbf716163eaf590c64c5448f9b41aeeaafe3342c48c6a7a478678a70b0310ca94e11d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants