-
Notifications
You must be signed in to change notification settings - Fork 36.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: add test for signet miner script #24559
test: add test for signet miner script #24559
Conversation
11f79b7
to
aaa81d2
Compare
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, 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. |
aaa81d2
to
d1d98c2
Compare
Concept ACK, thanks for adding tests |
The path is stored in `self.options.bitcoinutil`, points to `src/bitcoin-util` by default and can be overrided with the `BITCOINUTIL` environment variable.
d1d98c2
to
f8abc66
Compare
Force-pushed with preliminary commits integrating |
Code review ACK f8abc66 |
Concert ACK! |
f8abc66
to
038d2a6
Compare
Force-pushed with a simpler signet challenge (p2wpkh instead of 1-of-1 multisig that the descriptor wallet couldn't sign), the test can now be run with both legacy and descriptor wallet. Also removed the "works only with legacy wallet" part from the PR description accordingly. |
re-ACK 038d2a6 |
This PR adds a very basic test for the signet miner script (contrib/signet/miner).
It was based on #24553 (merged by now) which fixes a bug (and was also the motivation to write this test).The test roughly follows the steps from https://en.bitcoin.it/wiki/Signet#Custom_Signet, except that the challenge key-pair is created solely with the test framework. Calibration is also skipped, the difficulty is simply set to the first mainnet target
0x1d00ffff
(see also https://bitcoin.stackexchange.com/a/57186).