mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 10:29:40 +00:00
test: Replace hardcoded extended keys with ExtendedKey helpers #36710
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36710
Loading…
Reference in a new issue
No description provided.
Delete branch "replace-hardcoded-keys"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR is a follow-up of PR #35543.
I've updated the tests that were still using hardcoded keys, and used the
ExtendedKeyclasses instead.The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Conflicts
Reviewers, this pull request conflicts with the following ones:
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.
No findings were published from this review.
Review coverage was incomplete.
Reviewed:
25dec17ff487· Review report · Previous reportspermalink
🐙 This pull request conflicts with the target branch and needs rebase.
cACK
in
f805f095fdtest: Replace hardcoded extended keys with ExtendedKey helpersIf I am not wrong this can cause some problems when running the test framework with
--randomseed=. As same seed could produce different results, making errors non reproducible. This is because the seed is not applied into the rng before you call a function.A solution to this would be to not use an rng for this test and hardcode some value.
For example:
@polespinasa took you suggestion, I was also thinking about generating the keys inside
run_test()instead so the seed would cover them, but that would require a bigger restructuring and maybe not worth it.ACK
174adf559dnit: this import should go in multiple lines. See https://github.com/bitcoin/bitcoin/tree/master/test/functional#style-guidelines
done
ACK
25dec17ff4