Skip to content

Conversation

l0rinc
Copy link
Contributor

@l0rinc l0rinc commented Feb 20, 2025

This is a follow-up to #30746, expanding coverage by:

@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 20, 2025

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31917.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK mzumsande, maflcko
Concept ACK arejula27

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@l0rinc l0rinc force-pushed the l0rinc/base-encoding-input-fuzz-size-reduction branch 3 times, most recently from d7105c8 to a63c5c1 Compare February 21, 2025 09:31
@arejula27
Copy link

arejula27 commented Feb 23, 2025

Concept ACK a63c5c1a8a012b694

I’ve reviewed the changes and have one main observation:

1. Fuzz Test Limitations

Limiting fuzz to the most common sizes makes sense for efficiency. However, if long strings are still expected to be supported, there should be explicit test coverage for them.

I checked the unit tests for Base58 in src/test/base58_tests.cpp, which reads test cases from test/data/base58_encode_decode.json. The longest existing test case appears on line 18, with a hex-encoded string of size 512. Given that this PR removes the long string test from the fuzz tests, it may be beneficial to add a new test case in base58_encode_decode.json to verify behaviour at 1000 characters.

2. Fuzz Test Execution

After static review, I ran the fuzz tests using:

$ cmake --preset=libfuzzer
$ cmake --build build_fuzz -j "$(($(nproc)+1))"

$ FUZZ=base58_encode_decode build_fuzz/src/test/fuzz/fuzz -max_total_time=30 -
$ FUZZ=base58check_encode_decode build_fuzz/src/test/fuzz/fuzz -max_total_time=30
$ FUZZ=base32_encode_decode build_fuzz/src/test/fuzz/fuzz -max_total_time=30 
$ FUZZ=base64_encode_decode build_fuzz/src/test/fuzz/fuzz -max_total_time=30 
$ FUZZ=psbt_base64_decode build_fuzz/src/test/fuzz/fuzz -max_total_time=30 

All tests passed successfully within the 30-second run.

@maflcko maflcko added this to the 29.0 milestone Feb 26, 2025
@maflcko maflcko removed this from the 29.0 milestone Feb 28, 2025
@l0rinc l0rinc force-pushed the l0rinc/base-encoding-input-fuzz-size-reduction branch from a63c5c1 to 1e4e183 Compare February 28, 2025 17:24
const auto encoded_string{EncodeBase58(decoded)};
assert(encoded_string == TrimStringView(random_string));
assert(encoded_string.empty() || !DecodeBase58(encoded_string, decoded, provider.ConsumeIntegralInRange<int>(0, decoded.size() - 1)));
assert(decoded.empty() || !DecodeBase58(encoded_string, decoded, provider.ConsumeIntegralInRange<int>(0, decoded.size() - 1)));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is the check changed from encoded_string.empty() to decoded.empty() in the first commit - especially if this function is being rewritten in the next commit anyway?

Copy link
Contributor Author

@l0rinc l0rinc Mar 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's the decoded size that determines if the (0, decoded.size() - 1) range makes sense or not - I'm correcting it in the first commit since this was a bug that could cause a fuzz failure (added explanation to commit message).
I'm reordering in the second commit so that we have single roundtrip logic instead of 2 separate ones.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, makes sense, but I'd challenge that this is "a bug that could cause a fuzz failure" (otherwise I would've expected this failure to be found by now):
My understanding is that in the relevant special case, both decoded an encoded_string are empty. However, it should be impossible for encoded_string to be empty and decoded non-empty (and vice versa) because of how base58 works.

l0rinc and others added 2 commits March 5, 2025 22:28
They seem to cause timeouts:
> Issue 397734700: bitcoin-core:base58check_encode_decode: Timeout in base58check_encode_decode

The `encoded_string.empty()` check was corrected here to `decoded.empty()` to make sure the `(0, decoded.size() - 1)` range is always valid.

Co-authored-by: maflcko <6399679+maflcko@users.noreply.github.com>
Co-authored-by: marcofleon <marleo23@proton.me>
Co-authored-by: Martin Zumsande <mzumsande@gmail.com>
…often

In Base58 fuzz the two roundtrips are merged now, the new `decode_input` switches between a completely random input and a valid encoded one, to make sure the decoding passes more often.
The `max_ret_len` can also exceed the original length now and is being validated more thoroughly.

Co-authored-by: maflcko <6399679+maflcko@users.noreply.github.com>
Co-authored-by: marcofleon <marleo23@proton.me>
@l0rinc l0rinc force-pushed the l0rinc/base-encoding-input-fuzz-size-reduction branch from 1e4e183 to d5537c1 Compare March 5, 2025 21:31
@mzumsande
Copy link
Contributor

Code Review / lightly tested ACK d5537c1

@maflcko
Copy link
Member

maflcko commented Mar 15, 2025

review ACK d5537c1 🚛

Show signature

Signature:

untrusted comment: signature from minisign secret key on empty file; verify via: minisign -Vm "${path_to_any_empty_file}" -P RWTRmVTMeKV5noAMqVlsMugDDCyyTSbA3Re5AkUrhvLVln0tSaFWglOw -x "${path_to_this_whole_four_line_signature_blob}"
RUTRmVTMeKV5npGrKx1nqXCw5zeVHdtdYURB/KlyA/LMFgpNCs+SkW9a8N95d+U4AP1RJMi+krxU1A3Yux4bpwZNLvVBKy0wLgM=
trusted comment: review ACK d5537c18a9034647ba4c9ed4008abd7fee33989e 🚛
lZRbdgnghqtziDGBOrJTlPhuDIsZdigxD/VS2S8f5+dWrvPvXpUWSzcRe/nWCWjUTD2bz/MArCoV2/DrCVmxDA==

@maflcko maflcko added this to the 29.0 milestone Mar 15, 2025
@maflcko
Copy link
Member

maflcko commented Mar 15, 2025

(In theory this could be backported to 29.0 to avoid a fuzz timeout there, but it isn't too important, up to the backport maintainer)

@fanquake fanquake merged commit ab2df17 into bitcoin:master Mar 16, 2025
18 checks passed
glozow pushed a commit to glozow/bitcoin that referenced this pull request Mar 17, 2025
They seem to cause timeouts:
> Issue 397734700: bitcoin-core:base58check_encode_decode: Timeout in base58check_encode_decode

The `encoded_string.empty()` check was corrected here to `decoded.empty()` to make sure the `(0, decoded.size() - 1)` range is always valid.

Github-Pull: bitcoin#31917
Rebased-From: bad1433

Co-authored-by: maflcko <6399679+maflcko@users.noreply.github.com>
Co-authored-by: marcofleon <marleo23@proton.me>
Co-authored-by: Martin Zumsande <mzumsande@gmail.com>
glozow pushed a commit to glozow/bitcoin that referenced this pull request Mar 17, 2025
…often

In Base58 fuzz the two roundtrips are merged now, the new `decode_input` switches between a completely random input and a valid encoded one, to make sure the decoding passes more often.
The `max_ret_len` can also exceed the original length now and is being validated more thoroughly.

Github-Pull: bitcoin#31917
Rebased-From: d5537c1

Co-authored-by: maflcko <6399679+maflcko@users.noreply.github.com>
Co-authored-by: marcofleon <marleo23@proton.me>
@glozow
Copy link
Member

glozow commented Mar 17, 2025

Backported in #32062

fanquake added a commit that referenced this pull request Mar 18, 2025
74df31c [doc] update example bitcoin.conf with missing options (glozow)
8082f88 [doc] update man pages for 29.0rc2 (glozow)
472d582 [build] bump to 29.0rc2 (glozow)
a4c30bd qt: doc: adapt outdated binary paths to CMake changes (Sebastian Falbesoner)
4e438d3 build: use make < 3.82 syntax for define directive (Sjors Provoost)
7ff0b02 build: Remove manpages when making MacOS app (Ava Chow)
5ebcb59 test: fix intermittent failure in p2p_orphan_handling.py (Martin Zumsande)
458655b fuzz: make sure DecodeBase58(Check) is called with valid values more often (Lőrinc)
15ecae3 fuzz: Always restrict base conversion input lengths (Lőrinc)
80c5d57 contrib: Fix `gen-bitcoin-conf.sh`. (David Gumberg)

Pull request description:

  backports:
  - #32049
  - #32063
  - #32064
  - #32070
  - #31917

ACKs for top commit:
  Sjors:
    ACK 74df31c
  hebasto:
    ACK 74df31c, I have reviewed the code and it looks OK.
  ismaelsadeeq:
    Code review ACK 74df31c

Tree-SHA512: df4ef832a03c9c3f89d30d3f65d81b7c7e4793d2cad8a269f1ff221454a4b0b05e06109f4556926c1c4f7fcbd2537052b4d58b4b3911dfcfc35726c600b587d9
stickies-v added a commit to stickies-v/py-bitcoinkernel that referenced this pull request Mar 21, 2025
29f05b91cf8 kernel: Add pure kernel bitcoin-chainstate
b7733085a90 kernel: Add functions to get the block hash from a block
a4f79616064 kernel: Add block index utility functions to C header
0a0062b85a7 kernel: Add function to read block undo data from disk to C header
e49808a42d3 kernel: Add functions to read block from disk to C header
2f54bd53745 kernel: Add function for copying block data to C header
c34ecbefbd8 kernel: Add functions for the block validation state to C header
0b46337ebe3 kernel: Add validation interface to C header
4c7a81a030e kernel: Add interrupt function to C header
edf1d56fc05 kernel: Add import blocks function to C header
894b9c20447 kernel: Add chainstate load options for in-memory dbs in C header
157de0eccd3 kernel: Add options for reindexing in C header
bdff17958b1 kernel: Add block validation to C header
c52ca9447fc kernel: Add chainstate loading when instantiating a ChainstateManager
031a96dc6b7 kernel: Add chainstate manager option for setting worker threads
c2f03a11251 kernel: Add chainstate manager object to C header
18ec1cc195b kernel: Add notifications context option to C header
e3b03745f93 kernel: Add chain params context option to C header
ef426234c07 kernel: Add kernel library context object
2c5e6b55922 kernel: Add logging to kernel library C header
20f1f67de07 kernel: Introduce initial kernel C header API
998386d4462 Merge bitcoin/bitcoin#31866: test, refactor: Add TestNode.binaries to hold binary paths
aa87e0b4460 Merge bitcoin/bitcoin#31519: refactor: Use std::span over Span
ef525e8b7c1 Merge bitcoin/bitcoin#31457: fuzz: Speed up *_package_eval fuzz targets a bit
7d76c9725ca Merge bitcoin/bitcoin#31766: leveldb: pull upstream C++23 changes
780bcf80b5d Merge bitcoin/bitcoin#32091: test: replace assert with assert_equal and assert_greater_than
e568c1dd134 Merge bitcoin/bitcoin#32088: test: switch wallet_crosschain.py to signet and drop testnet4
e8f6a48e310 Merge bitcoin/bitcoin#32057: test: avoid disk space warning for non-regtest
387385ba1ed test: replace assert with assert_equal and assert_greater_than
d190f0facc8 test, contrib: Fix signer/miner command line escaping
223fc24c4eb Merge bitcoin/bitcoin#31603: descriptor: check whitespace in keys within fragments
0d2eefca8bf test, refactor: Add TestNode.binaries to hold binary paths
d61a847af0b Merge bitcoin/bitcoin#32019: cmake: Check for `makensis` and `zip` tools before using them for optional `deploy` targets
cec14ee47d7 test: switch wallet_crosschain.py to signet
9c2951541c2 test: drop testnet4 from wallet_crosschain.py
14fec6380dd Merge bitcoin/bitcoin#32059: test: Update coverage.cpp to drop linux restriction
ece0b41da6d Merge bitcoin/bitcoin#32087: ci: Drop ENABLE_HARDENING=OFF from clang-tidy
c9b633d1190 Merge bitcoin/bitcoin#31948: ci: [lint] Use Cirrus dockerfile cache
6245c235046 Merge bitcoin/bitcoin#32083: doc: shallow clone `qa-assets`
257fd27e4bb Merge bitcoin/bitcoin#32033: test: Check datadir cleanup after assumeutxo was successful
6f9f415a4fa doc: shallow clone qa-assets
db2c57ae9ee Merge bitcoin-core/gui#858: qt: doc: adapt outdated binary paths to CMake changes
c8fab356171 ci: remove -Wno-error=deprecated-declarations from ASAN
24fd0235e45 Update leveldb subtree to latest upstream
a130bbd154d Squashed 'src/leveldb/' changes from 04b5790928..4188247086
a799415d84d Merge bitcoin/bitcoin#31904: refactor: modernize outdated trait patterns using helper aliases (C++14/C++17)
5f4422d68dc Merge bitcoin/bitcoin#32010: qa: Fix TxIndex race conditions
52482cb2440 test: Check datadir cleanup after assumeutxo was successful
7ebc458a8cb qt: doc: adapt outdated binary paths to CMake changes
cd8089c20ba Merge bitcoin/bitcoin#32069: test: fix intermittent failure in wallet_reorgsrestore.py
70a0ee89c67 Merge bitcoin/bitcoin#32063: test: fix intermittent failure in p2p_orphan_handling.py
54e6eacc1fc test: Enable ResetCoverageCounters beyond Linux
83a9e55ae16 Merge bitcoin/bitcoin#32070: build: use make < 3.82 syntax for define directive
ca05b28710a Merge bitcoin/bitcoin#31859: test: Rename send_message to send_without_ping
ab2df1726ed Merge bitcoin/bitcoin#31917: fuzz: provide more realistic values to the base58(check) decoders
51a20e56c2f Merge bitcoin/bitcoin#31977: test: Use rpc_deprecated only for testing deprecation
fac3d93c2ba fuzz: Speed up *_package_eval fuzz targets a bit
fa40fd043ab fuzz: [refactor] Avoid confusing c-style cast
20fe41e9e83 test: avoid disk space warning for non-regtest
2819c514825 test: Use rpc_deprecated only for testing deprecation
7d34c19853e ci: Drop ENABLE_HARDENING=OFF from clang-tidy
9157d9e4498 build: use make < 3.82 syntax for define directive
36b0713edc4 test: fix intermittent failure in wallet_reorgsrestore.py
fa9cf38ab66 scripted-diff: test: Rename send_message to send_without_ping
fa4356717d6 test: Prefer send_and_ping over send_message+sync_with_ping
02942056fd8 test: fix intermittent failure in p2p_orphan_handling.py
1f9b2e150ce cmake: Require `zip` only for `deploy` target
0aeff299513 cmake: Check for `makensis` tool before using it
fa3b4427158 ci: Use Cirrus dockerfile cache
ffff4a293ad bench: Update span-serialize comment
fa4d6ec97bc refactor: Avoid false-positive gcc warning
fa942332b40 scripted-diff: Bump copyright headers after std::span changes
fa0c6b7179c refactor: Remove unused Span alias
fade0b5e5e6 scripted-diff: Use std::span over Span
fadccc26c03 refactor: Make Span an alias of std::span
fa27e36717e test: Fix broken span_tests
fadf02ef8bf refactor: Return std::span from MakeUCharSpan
fa720b94be1 refactor: Return std::span from MakeByteSpan
3301d2cbe8c qa: Wait for txindex to avoid race condition
9bfb0d75ba1 qa: Remove unnecessary -txindex args
7ac281c19cd qa: Add missing coverage of corrupt indexes
d5537c18a90 fuzz: make sure DecodeBase58(Check) is called with valid values more often
bad1433ef2b fuzz: Always restrict base conversion input lengths
21e9d39a372 docs: add release notes for 31603
a8b548d75d9 test: `getdescriptorinfo`/`importdescriptors` with whitespace in pubkeys
c7afca3d62c test: descriptor: check whitespace into keys
cb722a3cea1 descriptor: check whitespace in ParsePubkeyInner
4cd95a29218 refactor: modernize remaining outdated trait patterns
ab2b67fce20 scripted-diff: modernize outdated trait patterns - values
8327889f358 scripted-diff: modernize outdated trait patterns - types
50856695ef6 test: fix descriptors in `ismine_tests`
REVERT: 2dc27e2860b kernel: Add pure kernel bitcoin-chainstate
REVERT: 338126c048f kernel: Add functions to get the block hash from a block
REVERT: 56345a77968 kernel: Add block index utility functions to C header
REVERT: 9530f65d19b kernel: Add function to read block undo data from disk to C header
REVERT: f63860169fb kernel: Add functions to read block from disk to C header
REVERT: f3aa1f9bf0c kernel: Add function for copying block data to C header
REVERT: a70be77c908 kernel: Add functions for the block validation state to C header
REVERT: e4e3dc585a3 kernel: Add validation interface to C header
REVERT: d3c48b2bdc6 kernel: Add interrupt function to C header
REVERT: 7afbc516054 kernel: Add import blocks function to C header
REVERT: bad89c8b30b kernel: Add chainstate load options for in-memory dbs in C header
REVERT: 1dcedf3da97 kernel: Add options for reindexing in C header
REVERT: aeb68c7f022 kernel: Add block validation to C header
REVERT: 99136eb1656 kernel: Add chainstate loading when instantiating a ChainstateManager
REVERT: 0a2117ed501 kernel: Add chainstate manager option for setting worker threads
REVERT: 599dc235e98 kernel: Add chainstate manager object to C header
REVERT: f280a5f3ab8 kernel: Add notifications context option to C header
REVERT: 6701d12b017 kernel: Add chain params context option to C header
REVERT: f40f037a9cd kernel: Add kernel library context object
REVERT: 7a6c5c7abf2 kernel: Add logging to kernel library C header
REVERT: 4d663446de1 kernel: Introduce initial kernel C header API

git-subtree-dir: depend/bitcoin
git-subtree-split: 29f05b91cf8a479e403b0322afeb5ff1133da221
stickies-v added a commit to stickies-v/py-bitcoinkernel that referenced this pull request Mar 21, 2025
29f05b91cf8 kernel: Add pure kernel bitcoin-chainstate
b7733085a90 kernel: Add functions to get the block hash from a block
a4f79616064 kernel: Add block index utility functions to C header
0a0062b85a7 kernel: Add function to read block undo data from disk to C header
e49808a42d3 kernel: Add functions to read block from disk to C header
2f54bd53745 kernel: Add function for copying block data to C header
c34ecbefbd8 kernel: Add functions for the block validation state to C header
0b46337ebe3 kernel: Add validation interface to C header
4c7a81a030e kernel: Add interrupt function to C header
edf1d56fc05 kernel: Add import blocks function to C header
894b9c20447 kernel: Add chainstate load options for in-memory dbs in C header
157de0eccd3 kernel: Add options for reindexing in C header
bdff17958b1 kernel: Add block validation to C header
c52ca9447fc kernel: Add chainstate loading when instantiating a ChainstateManager
031a96dc6b7 kernel: Add chainstate manager option for setting worker threads
c2f03a11251 kernel: Add chainstate manager object to C header
18ec1cc195b kernel: Add notifications context option to C header
e3b03745f93 kernel: Add chain params context option to C header
ef426234c07 kernel: Add kernel library context object
2c5e6b55922 kernel: Add logging to kernel library C header
20f1f67de07 kernel: Introduce initial kernel C header API
998386d4462 Merge bitcoin/bitcoin#31866: test, refactor: Add TestNode.binaries to hold binary paths
aa87e0b4460 Merge bitcoin/bitcoin#31519: refactor: Use std::span over Span
ef525e8b7c1 Merge bitcoin/bitcoin#31457: fuzz: Speed up *_package_eval fuzz targets a bit
7d76c9725ca Merge bitcoin/bitcoin#31766: leveldb: pull upstream C++23 changes
780bcf80b5d Merge bitcoin/bitcoin#32091: test: replace assert with assert_equal and assert_greater_than
e568c1dd134 Merge bitcoin/bitcoin#32088: test: switch wallet_crosschain.py to signet and drop testnet4
e8f6a48e310 Merge bitcoin/bitcoin#32057: test: avoid disk space warning for non-regtest
387385ba1ed test: replace assert with assert_equal and assert_greater_than
d190f0facc8 test, contrib: Fix signer/miner command line escaping
223fc24c4eb Merge bitcoin/bitcoin#31603: descriptor: check whitespace in keys within fragments
0d2eefca8bf test, refactor: Add TestNode.binaries to hold binary paths
d61a847af0b Merge bitcoin/bitcoin#32019: cmake: Check for `makensis` and `zip` tools before using them for optional `deploy` targets
cec14ee47d7 test: switch wallet_crosschain.py to signet
9c2951541c2 test: drop testnet4 from wallet_crosschain.py
14fec6380dd Merge bitcoin/bitcoin#32059: test: Update coverage.cpp to drop linux restriction
ece0b41da6d Merge bitcoin/bitcoin#32087: ci: Drop ENABLE_HARDENING=OFF from clang-tidy
c9b633d1190 Merge bitcoin/bitcoin#31948: ci: [lint] Use Cirrus dockerfile cache
6245c235046 Merge bitcoin/bitcoin#32083: doc: shallow clone `qa-assets`
257fd27e4bb Merge bitcoin/bitcoin#32033: test: Check datadir cleanup after assumeutxo was successful
6f9f415a4fa doc: shallow clone qa-assets
db2c57ae9ee Merge bitcoin-core/gui#858: qt: doc: adapt outdated binary paths to CMake changes
c8fab356171 ci: remove -Wno-error=deprecated-declarations from ASAN
24fd0235e45 Update leveldb subtree to latest upstream
a130bbd154d Squashed 'src/leveldb/' changes from 04b5790928..4188247086
a799415d84d Merge bitcoin/bitcoin#31904: refactor: modernize outdated trait patterns using helper aliases (C++14/C++17)
5f4422d68dc Merge bitcoin/bitcoin#32010: qa: Fix TxIndex race conditions
52482cb2440 test: Check datadir cleanup after assumeutxo was successful
7ebc458a8cb qt: doc: adapt outdated binary paths to CMake changes
cd8089c20ba Merge bitcoin/bitcoin#32069: test: fix intermittent failure in wallet_reorgsrestore.py
70a0ee89c67 Merge bitcoin/bitcoin#32063: test: fix intermittent failure in p2p_orphan_handling.py
54e6eacc1fc test: Enable ResetCoverageCounters beyond Linux
83a9e55ae16 Merge bitcoin/bitcoin#32070: build: use make < 3.82 syntax for define directive
ca05b28710a Merge bitcoin/bitcoin#31859: test: Rename send_message to send_without_ping
ab2df1726ed Merge bitcoin/bitcoin#31917: fuzz: provide more realistic values to the base58(check) decoders
51a20e56c2f Merge bitcoin/bitcoin#31977: test: Use rpc_deprecated only for testing deprecation
fac3d93c2ba fuzz: Speed up *_package_eval fuzz targets a bit
fa40fd043ab fuzz: [refactor] Avoid confusing c-style cast
20fe41e9e83 test: avoid disk space warning for non-regtest
2819c514825 test: Use rpc_deprecated only for testing deprecation
7d34c19853e ci: Drop ENABLE_HARDENING=OFF from clang-tidy
9157d9e4498 build: use make < 3.82 syntax for define directive
36b0713edc4 test: fix intermittent failure in wallet_reorgsrestore.py
fa9cf38ab66 scripted-diff: test: Rename send_message to send_without_ping
fa4356717d6 test: Prefer send_and_ping over send_message+sync_with_ping
02942056fd8 test: fix intermittent failure in p2p_orphan_handling.py
1f9b2e150ce cmake: Require `zip` only for `deploy` target
0aeff299513 cmake: Check for `makensis` tool before using it
fa3b4427158 ci: Use Cirrus dockerfile cache
ffff4a293ad bench: Update span-serialize comment
fa4d6ec97bc refactor: Avoid false-positive gcc warning
fa942332b40 scripted-diff: Bump copyright headers after std::span changes
fa0c6b7179c refactor: Remove unused Span alias
fade0b5e5e6 scripted-diff: Use std::span over Span
fadccc26c03 refactor: Make Span an alias of std::span
fa27e36717e test: Fix broken span_tests
fadf02ef8bf refactor: Return std::span from MakeUCharSpan
fa720b94be1 refactor: Return std::span from MakeByteSpan
3301d2cbe8c qa: Wait for txindex to avoid race condition
9bfb0d75ba1 qa: Remove unnecessary -txindex args
7ac281c19cd qa: Add missing coverage of corrupt indexes
d5537c18a90 fuzz: make sure DecodeBase58(Check) is called with valid values more often
bad1433ef2b fuzz: Always restrict base conversion input lengths
21e9d39a372 docs: add release notes for 31603
a8b548d75d9 test: `getdescriptorinfo`/`importdescriptors` with whitespace in pubkeys
c7afca3d62c test: descriptor: check whitespace into keys
cb722a3cea1 descriptor: check whitespace in ParsePubkeyInner
4cd95a29218 refactor: modernize remaining outdated trait patterns
ab2b67fce20 scripted-diff: modernize outdated trait patterns - values
8327889f358 scripted-diff: modernize outdated trait patterns - types
50856695ef6 test: fix descriptors in `ismine_tests`
REVERT: 2dc27e2860b kernel: Add pure kernel bitcoin-chainstate
REVERT: 338126c048f kernel: Add functions to get the block hash from a block
REVERT: 56345a77968 kernel: Add block index utility functions to C header
REVERT: 9530f65d19b kernel: Add function to read block undo data from disk to C header
REVERT: f63860169fb kernel: Add functions to read block from disk to C header
REVERT: f3aa1f9bf0c kernel: Add function for copying block data to C header
REVERT: a70be77c908 kernel: Add functions for the block validation state to C header
REVERT: e4e3dc585a3 kernel: Add validation interface to C header
REVERT: d3c48b2bdc6 kernel: Add interrupt function to C header
REVERT: 7afbc516054 kernel: Add import blocks function to C header
REVERT: bad89c8b30b kernel: Add chainstate load options for in-memory dbs in C header
REVERT: 1dcedf3da97 kernel: Add options for reindexing in C header
REVERT: aeb68c7f022 kernel: Add block validation to C header
REVERT: 99136eb1656 kernel: Add chainstate loading when instantiating a ChainstateManager
REVERT: 0a2117ed501 kernel: Add chainstate manager option for setting worker threads
REVERT: 599dc235e98 kernel: Add chainstate manager object to C header
REVERT: f280a5f3ab8 kernel: Add notifications context option to C header
REVERT: 6701d12b017 kernel: Add chain params context option to C header
REVERT: f40f037a9cd kernel: Add kernel library context object
REVERT: 7a6c5c7abf2 kernel: Add logging to kernel library C header
REVERT: 4d663446de1 kernel: Introduce initial kernel C header API

git-subtree-dir: depend/bitcoin
git-subtree-split: 29f05b91cf8a479e403b0322afeb5ff1133da221
stickies-v added a commit to stickies-v/py-bitcoinkernel that referenced this pull request Mar 21, 2025
29f05b91cf8 kernel: Add pure kernel bitcoin-chainstate
b7733085a90 kernel: Add functions to get the block hash from a block
a4f79616064 kernel: Add block index utility functions to C header
0a0062b85a7 kernel: Add function to read block undo data from disk to C header
e49808a42d3 kernel: Add functions to read block from disk to C header
2f54bd53745 kernel: Add function for copying block data to C header
c34ecbefbd8 kernel: Add functions for the block validation state to C header
0b46337ebe3 kernel: Add validation interface to C header
4c7a81a030e kernel: Add interrupt function to C header
edf1d56fc05 kernel: Add import blocks function to C header
894b9c20447 kernel: Add chainstate load options for in-memory dbs in C header
157de0eccd3 kernel: Add options for reindexing in C header
bdff17958b1 kernel: Add block validation to C header
c52ca9447fc kernel: Add chainstate loading when instantiating a ChainstateManager
031a96dc6b7 kernel: Add chainstate manager option for setting worker threads
c2f03a11251 kernel: Add chainstate manager object to C header
18ec1cc195b kernel: Add notifications context option to C header
e3b03745f93 kernel: Add chain params context option to C header
ef426234c07 kernel: Add kernel library context object
2c5e6b55922 kernel: Add logging to kernel library C header
20f1f67de07 kernel: Introduce initial kernel C header API
998386d4462 Merge bitcoin/bitcoin#31866: test, refactor: Add TestNode.binaries to hold binary paths
aa87e0b4460 Merge bitcoin/bitcoin#31519: refactor: Use std::span over Span
ef525e8b7c1 Merge bitcoin/bitcoin#31457: fuzz: Speed up *_package_eval fuzz targets a bit
7d76c9725ca Merge bitcoin/bitcoin#31766: leveldb: pull upstream C++23 changes
780bcf80b5d Merge bitcoin/bitcoin#32091: test: replace assert with assert_equal and assert_greater_than
e568c1dd134 Merge bitcoin/bitcoin#32088: test: switch wallet_crosschain.py to signet and drop testnet4
e8f6a48e310 Merge bitcoin/bitcoin#32057: test: avoid disk space warning for non-regtest
387385ba1ed test: replace assert with assert_equal and assert_greater_than
d190f0facc8 test, contrib: Fix signer/miner command line escaping
223fc24c4eb Merge bitcoin/bitcoin#31603: descriptor: check whitespace in keys within fragments
0d2eefca8bf test, refactor: Add TestNode.binaries to hold binary paths
d61a847af0b Merge bitcoin/bitcoin#32019: cmake: Check for `makensis` and `zip` tools before using them for optional `deploy` targets
cec14ee47d7 test: switch wallet_crosschain.py to signet
9c2951541c2 test: drop testnet4 from wallet_crosschain.py
14fec6380dd Merge bitcoin/bitcoin#32059: test: Update coverage.cpp to drop linux restriction
ece0b41da6d Merge bitcoin/bitcoin#32087: ci: Drop ENABLE_HARDENING=OFF from clang-tidy
c9b633d1190 Merge bitcoin/bitcoin#31948: ci: [lint] Use Cirrus dockerfile cache
6245c235046 Merge bitcoin/bitcoin#32083: doc: shallow clone `qa-assets`
257fd27e4bb Merge bitcoin/bitcoin#32033: test: Check datadir cleanup after assumeutxo was successful
6f9f415a4fa doc: shallow clone qa-assets
db2c57ae9ee Merge bitcoin-core/gui#858: qt: doc: adapt outdated binary paths to CMake changes
c8fab356171 ci: remove -Wno-error=deprecated-declarations from ASAN
24fd0235e45 Update leveldb subtree to latest upstream
a130bbd154d Squashed 'src/leveldb/' changes from 04b5790928..4188247086
a799415d84d Merge bitcoin/bitcoin#31904: refactor: modernize outdated trait patterns using helper aliases (C++14/C++17)
5f4422d68dc Merge bitcoin/bitcoin#32010: qa: Fix TxIndex race conditions
52482cb2440 test: Check datadir cleanup after assumeutxo was successful
7ebc458a8cb qt: doc: adapt outdated binary paths to CMake changes
cd8089c20ba Merge bitcoin/bitcoin#32069: test: fix intermittent failure in wallet_reorgsrestore.py
70a0ee89c67 Merge bitcoin/bitcoin#32063: test: fix intermittent failure in p2p_orphan_handling.py
54e6eacc1fc test: Enable ResetCoverageCounters beyond Linux
83a9e55ae16 Merge bitcoin/bitcoin#32070: build: use make < 3.82 syntax for define directive
ca05b28710a Merge bitcoin/bitcoin#31859: test: Rename send_message to send_without_ping
ab2df1726ed Merge bitcoin/bitcoin#31917: fuzz: provide more realistic values to the base58(check) decoders
51a20e56c2f Merge bitcoin/bitcoin#31977: test: Use rpc_deprecated only for testing deprecation
fac3d93c2ba fuzz: Speed up *_package_eval fuzz targets a bit
fa40fd043ab fuzz: [refactor] Avoid confusing c-style cast
20fe41e9e83 test: avoid disk space warning for non-regtest
2819c514825 test: Use rpc_deprecated only for testing deprecation
7d34c19853e ci: Drop ENABLE_HARDENING=OFF from clang-tidy
9157d9e4498 build: use make < 3.82 syntax for define directive
36b0713edc4 test: fix intermittent failure in wallet_reorgsrestore.py
fa9cf38ab66 scripted-diff: test: Rename send_message to send_without_ping
fa4356717d6 test: Prefer send_and_ping over send_message+sync_with_ping
02942056fd8 test: fix intermittent failure in p2p_orphan_handling.py
1f9b2e150ce cmake: Require `zip` only for `deploy` target
0aeff299513 cmake: Check for `makensis` tool before using it
fa3b4427158 ci: Use Cirrus dockerfile cache
ffff4a293ad bench: Update span-serialize comment
fa4d6ec97bc refactor: Avoid false-positive gcc warning
fa942332b40 scripted-diff: Bump copyright headers after std::span changes
fa0c6b7179c refactor: Remove unused Span alias
fade0b5e5e6 scripted-diff: Use std::span over Span
fadccc26c03 refactor: Make Span an alias of std::span
fa27e36717e test: Fix broken span_tests
fadf02ef8bf refactor: Return std::span from MakeUCharSpan
fa720b94be1 refactor: Return std::span from MakeByteSpan
3301d2cbe8c qa: Wait for txindex to avoid race condition
9bfb0d75ba1 qa: Remove unnecessary -txindex args
7ac281c19cd qa: Add missing coverage of corrupt indexes
d5537c18a90 fuzz: make sure DecodeBase58(Check) is called with valid values more often
bad1433ef2b fuzz: Always restrict base conversion input lengths
21e9d39a372 docs: add release notes for 31603
a8b548d75d9 test: `getdescriptorinfo`/`importdescriptors` with whitespace in pubkeys
c7afca3d62c test: descriptor: check whitespace into keys
cb722a3cea1 descriptor: check whitespace in ParsePubkeyInner
4cd95a29218 refactor: modernize remaining outdated trait patterns
ab2b67fce20 scripted-diff: modernize outdated trait patterns - values
8327889f358 scripted-diff: modernize outdated trait patterns - types
50856695ef6 test: fix descriptors in `ismine_tests`
REVERT: 2dc27e2860b kernel: Add pure kernel bitcoin-chainstate
REVERT: 338126c048f kernel: Add functions to get the block hash from a block
REVERT: 56345a77968 kernel: Add block index utility functions to C header
REVERT: 9530f65d19b kernel: Add function to read block undo data from disk to C header
REVERT: f63860169fb kernel: Add functions to read block from disk to C header
REVERT: f3aa1f9bf0c kernel: Add function for copying block data to C header
REVERT: a70be77c908 kernel: Add functions for the block validation state to C header
REVERT: e4e3dc585a3 kernel: Add validation interface to C header
REVERT: d3c48b2bdc6 kernel: Add interrupt function to C header
REVERT: 7afbc516054 kernel: Add import blocks function to C header
REVERT: bad89c8b30b kernel: Add chainstate load options for in-memory dbs in C header
REVERT: 1dcedf3da97 kernel: Add options for reindexing in C header
REVERT: aeb68c7f022 kernel: Add block validation to C header
REVERT: 99136eb1656 kernel: Add chainstate loading when instantiating a ChainstateManager
REVERT: 0a2117ed501 kernel: Add chainstate manager option for setting worker threads
REVERT: 599dc235e98 kernel: Add chainstate manager object to C header
REVERT: f280a5f3ab8 kernel: Add notifications context option to C header
REVERT: 6701d12b017 kernel: Add chain params context option to C header
REVERT: f40f037a9cd kernel: Add kernel library context object
REVERT: 7a6c5c7abf2 kernel: Add logging to kernel library C header
REVERT: 4d663446de1 kernel: Introduce initial kernel C header API

git-subtree-dir: depend/bitcoin
git-subtree-split: 29f05b91cf8a479e403b0322afeb5ff1133da221
TheCharlatan added a commit to TheCharlatan/rust-bitcoinkernel that referenced this pull request Mar 24, 2025
…f05b91cf8

29f05b91cf8 kernel: Add pure kernel bitcoin-chainstate
b7733085a90 kernel: Add functions to get the block hash from a block
a4f79616064 kernel: Add block index utility functions to C header
0a0062b85a7 kernel: Add function to read block undo data from disk to C header
e49808a42d3 kernel: Add functions to read block from disk to C header
2f54bd53745 kernel: Add function for copying block data to C header
c34ecbefbd8 kernel: Add functions for the block validation state to C header
0b46337ebe3 kernel: Add validation interface to C header
4c7a81a030e kernel: Add interrupt function to C header
edf1d56fc05 kernel: Add import blocks function to C header
894b9c20447 kernel: Add chainstate load options for in-memory dbs in C header
157de0eccd3 kernel: Add options for reindexing in C header
bdff17958b1 kernel: Add block validation to C header
c52ca9447fc kernel: Add chainstate loading when instantiating a ChainstateManager
031a96dc6b7 kernel: Add chainstate manager option for setting worker threads
c2f03a11251 kernel: Add chainstate manager object to C header
18ec1cc195b kernel: Add notifications context option to C header
e3b03745f93 kernel: Add chain params context option to C header
ef426234c07 kernel: Add kernel library context object
2c5e6b55922 kernel: Add logging to kernel library C header
20f1f67de07 kernel: Introduce initial kernel C header API
998386d4462 Merge bitcoin/bitcoin#31866: test, refactor: Add TestNode.binaries to hold binary paths
aa87e0b4460 Merge bitcoin/bitcoin#31519: refactor: Use std::span over Span
ef525e8b7c1 Merge bitcoin/bitcoin#31457: fuzz: Speed up *_package_eval fuzz targets a bit
7d76c9725ca Merge bitcoin/bitcoin#31766: leveldb: pull upstream C++23 changes
780bcf80b5d Merge bitcoin/bitcoin#32091: test: replace assert with assert_equal and assert_greater_than
e568c1dd134 Merge bitcoin/bitcoin#32088: test: switch wallet_crosschain.py to signet and drop testnet4
e8f6a48e310 Merge bitcoin/bitcoin#32057: test: avoid disk space warning for non-regtest
387385ba1ed test: replace assert with assert_equal and assert_greater_than
d190f0facc8 test, contrib: Fix signer/miner command line escaping
223fc24c4eb Merge bitcoin/bitcoin#31603: descriptor: check whitespace in keys within fragments
0d2eefca8bf test, refactor: Add TestNode.binaries to hold binary paths
d61a847af0b Merge bitcoin/bitcoin#32019: cmake: Check for `makensis` and `zip` tools before using them for optional `deploy` targets
cec14ee47d7 test: switch wallet_crosschain.py to signet
9c2951541c2 test: drop testnet4 from wallet_crosschain.py
14fec6380dd Merge bitcoin/bitcoin#32059: test: Update coverage.cpp to drop linux restriction
ece0b41da6d Merge bitcoin/bitcoin#32087: ci: Drop ENABLE_HARDENING=OFF from clang-tidy
c9b633d1190 Merge bitcoin/bitcoin#31948: ci: [lint] Use Cirrus dockerfile cache
6245c235046 Merge bitcoin/bitcoin#32083: doc: shallow clone `qa-assets`
257fd27e4bb Merge bitcoin/bitcoin#32033: test: Check datadir cleanup after assumeutxo was successful
6f9f415a4fa doc: shallow clone qa-assets
db2c57ae9ee Merge bitcoin-core/gui#858: qt: doc: adapt outdated binary paths to CMake changes
c8fab356171 ci: remove -Wno-error=deprecated-declarations from ASAN
24fd0235e45 Update leveldb subtree to latest upstream
a130bbd154d Squashed 'src/leveldb/' changes from 04b5790928..4188247086
a799415d84d Merge bitcoin/bitcoin#31904: refactor: modernize outdated trait patterns using helper aliases (C++14/C++17)
5f4422d68dc Merge bitcoin/bitcoin#32010: qa: Fix TxIndex race conditions
52482cb2440 test: Check datadir cleanup after assumeutxo was successful
7ebc458a8cb qt: doc: adapt outdated binary paths to CMake changes
cd8089c20ba Merge bitcoin/bitcoin#32069: test: fix intermittent failure in wallet_reorgsrestore.py
70a0ee89c67 Merge bitcoin/bitcoin#32063: test: fix intermittent failure in p2p_orphan_handling.py
54e6eacc1fc test: Enable ResetCoverageCounters beyond Linux
83a9e55ae16 Merge bitcoin/bitcoin#32070: build: use make < 3.82 syntax for define directive
ca05b28710a Merge bitcoin/bitcoin#31859: test: Rename send_message to send_without_ping
ab2df1726ed Merge bitcoin/bitcoin#31917: fuzz: provide more realistic values to the base58(check) decoders
51a20e56c2f Merge bitcoin/bitcoin#31977: test: Use rpc_deprecated only for testing deprecation
fac3d93c2ba fuzz: Speed up *_package_eval fuzz targets a bit
fa40fd043ab fuzz: [refactor] Avoid confusing c-style cast
20fe41e9e83 test: avoid disk space warning for non-regtest
2819c514825 test: Use rpc_deprecated only for testing deprecation
7d34c19853e ci: Drop ENABLE_HARDENING=OFF from clang-tidy
9157d9e4498 build: use make < 3.82 syntax for define directive
36b0713edc4 test: fix intermittent failure in wallet_reorgsrestore.py
fa9cf38ab66 scripted-diff: test: Rename send_message to send_without_ping
fa4356717d6 test: Prefer send_and_ping over send_message+sync_with_ping
02942056fd8 test: fix intermittent failure in p2p_orphan_handling.py
1f9b2e150ce cmake: Require `zip` only for `deploy` target
0aeff299513 cmake: Check for `makensis` tool before using it
fa3b4427158 ci: Use Cirrus dockerfile cache
ffff4a293ad bench: Update span-serialize comment
fa4d6ec97bc refactor: Avoid false-positive gcc warning
fa942332b40 scripted-diff: Bump copyright headers after std::span changes
fa0c6b7179c refactor: Remove unused Span alias
fade0b5e5e6 scripted-diff: Use std::span over Span
fadccc26c03 refactor: Make Span an alias of std::span
fa27e36717e test: Fix broken span_tests
fadf02ef8bf refactor: Return std::span from MakeUCharSpan
fa720b94be1 refactor: Return std::span from MakeByteSpan
3301d2cbe8c qa: Wait for txindex to avoid race condition
9bfb0d75ba1 qa: Remove unnecessary -txindex args
7ac281c19cd qa: Add missing coverage of corrupt indexes
d5537c18a90 fuzz: make sure DecodeBase58(Check) is called with valid values more often
bad1433ef2b fuzz: Always restrict base conversion input lengths
21e9d39a372 docs: add release notes for 31603
a8b548d75d9 test: `getdescriptorinfo`/`importdescriptors` with whitespace in pubkeys
c7afca3d62c test: descriptor: check whitespace into keys
cb722a3cea1 descriptor: check whitespace in ParsePubkeyInner
4cd95a29218 refactor: modernize remaining outdated trait patterns
ab2b67fce20 scripted-diff: modernize outdated trait patterns - values
8327889f358 scripted-diff: modernize outdated trait patterns - types
50856695ef6 test: fix descriptors in `ismine_tests`
REVERT: 5991a69ee00 kernel: Add pure kernel bitcoin-chainstate
REVERT: 05b7d136684 kernel: Add functions to get the block hash from a block
REVERT: f18c792d843 kernel: Add block index utility functions to C header
REVERT: 89f5bf04673 kernel: Add function to read block undo data from disk to C header
REVERT: b4f71fc64e7 kernel: Add functions to read block from disk to C header
REVERT: 41306f081ad kernel: Add function for copying  block data to C header
REVERT: 9385d9fc87e kernel: Add functions for the block validation state to C header
REVERT: 0bd9a710358 kernel: Add validation interface to C header
REVERT: 432710f3fc3 kernel: Add interrupt function to C header
REVERT: cb164ae1eb2 kernel: Add import blocks function to C header
REVERT: abd67fd93d0 kernel: Add chainstate load options for in-memory dbs in C header
REVERT: b98c2748e94 kernel: Add options for reindexing in C header
REVERT: 9d0efe1fc86 kernel: Add block validation to C header
REVERT: 87e364fc1ec kernel: Add chainstate loading when instantiating a ChainstateManager
REVERT: df1599b2d2a kernel: Add chainstate manager option for setting worker threads
REVERT: fb767002e97 kernel: Add chainstate manager object to C header
REVERT: 10b0fad2fd3 kernel: Add notifications context option to C header
REVERT: 39e7ad8d0dc kernel: Add chain params context option to C header
REVERT: 6285c353b89 kernel: Add kernel library context object
REVERT: 98d10160b6a kernel: Add logging to kernel library C header
REVERT: 4d663446de1 kernel: Introduce initial kernel C header API

git-subtree-dir: libbitcoinkernel-sys/bitcoin
git-subtree-split: 29f05b91cf8a479e403b0322afeb5ff1133da221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants