Skip to content

fuzz: reduce keypool size in scriptpubkeyman target - #30494

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
brunoerg:2024-07-fuzz-spkm-fix
Jul 22, 2024
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
brunoerg:2024-07-fuzz-spkm-fix

Conversation

@brunoerg

@brunoerg brunoerg commented Jul 20, 2024 •

Copy link
Copy Markdown
Contributor

Fixes #30476

This PR reduces keypool size in scriptpubkeyman fuzz target to avoid spend a lot of time in TopUp (which is obviously called by many spkm functions).

For reference:

This PR:

INFO: Running with entropic power schedule (0xFF, 100).
INFO: Seed: 1845055748
INFO: Loaded 1 modules   (1225616 inline 8-bit counters): 1225616 [0x106346fe0, 0x106472370), 
INFO: Loaded 1 PC tables (1225616 PCs): 1225616 [0x106472370,0x107725c70), 
./src/test/fuzz/fuzz: Running 1 inputs 10 time(s) each.
Running: ./qa-assets/fuzz_seed_corpus/scriptpubkeyman/c9b8928cecb1edc192fb2d5816b4b7878cdfcf50
Executed ./qa-assets/fuzz_seed_corpus/scriptpubkeyman/c9b8928cecb1edc192fb2d5816b4b7878cdfcf50 in 250 ms

Master:

INFO: Running with entropic power schedule (0xFF, 100).
INFO: Seed: 2004906948
INFO: Loaded 1 modules   (1225603 inline 8-bit counters): 1225603 [0x104196f80, 0x1042c2303), 
INFO: Loaded 1 PC tables (1225603 PCs): 1225603 [0x1042c2308,0x105575b38), 
./src/test/fuzz/fuzz: Running 1 inputs 10 time(s) each.
Running: ./qa-assets/fuzz_seed_corpus/scriptpubkeyman/c9b8928cecb1edc192fb2d5816b4b7878cdfcf50
Executed ./qa-assets/fuzz_seed_corpus/scriptpubkeyman/c9b8928cecb1edc192fb2d5816b4b7878cdfcf50 in 21016 ms

@DrahtBot

DrahtBot commented Jul 20, 2024 •

Copy link
Copy Markdown
Contributor

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

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK maflcko, dergoegge
Concept ACK Sjors

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

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #30221 (wallet: Ensure best block matches wallet scan state by achow101)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@DrahtBot DrahtBot added the Tests label Jul 20, 2024
@brunoerg brunoerg changed the title fuzz: reduce keypool size in scriptpubkeyman target fuzz: reduce keypool size in scriptpubkeyman target Jul 20, 2024
@maflcko

maflcko commented Jul 22, 2024 •

Copy link
Copy Markdown
Member

review ACK dcb4ec9

This implements my suggestion from #30476 (comment), but I haven't benchmarked whether it works.

Edit: According to the CI timing output, it works.

https://cirrus-ci.com/task/6392536002985984?logs=ci#L6480

https://cirrus-ci.com/task/6473792925466624?logs=ci#L7201

@Sjors

Sjors commented Jul 22, 2024

Copy link
Copy Markdown
Member

Concept ACK

@DrahtBot
DrahtBot requested a review from Sjors July 22, 2024 13:07
@fanquake
fanquake requested a review from dergoegge July 22, 2024 16:57

@dergoegge dergoegge left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

utACK dcb4ec9

@fanquake
fanquake merged commit 8754d05 into bitcoin:master Jul 22, 2024
@brunoerg
brunoerg deleted the 2024-07-fuzz-spkm-fix branch July 22, 2024 17:15
@bitcoin bitcoin locked and limited conversation to collaborators Jul 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scriptpubkeyman fuzz target TopUp is slow

6 participants