Skip to content

miner script updates#88

Merged
ajtowns merged 3 commits intobitcoin-inquisition:29.xfrom
ajtowns:202507-inq29-miner-act
Sep 2, 2025
Merged

miner script updates#88
ajtowns merged 3 commits intobitcoin-inquisition:29.xfrom
ajtowns:202507-inq29-miner-act

Conversation

@ajtowns
Copy link

@ajtowns ajtowns commented Aug 23, 2025

Adds --prefer-gbt-* options for inquisition fallback support, --wallets option for using multiple wallets to sign the block PSBT, and --nversion for overriding the block version (eg, in order to activate/abandon deployments).

Allows pointing the miner at a preferred bitcoin-cli for generating
templates, while still using the main bitcoin-cli for submitting blocks,
while automatically defaulting back to the main bitcoin-cli if the
preferred one encounters problems. Primarily useful for experimenting
with new consensus/policy rules.
Adds a --wallets option for specifying one or more wallets to be used
when signing the block PSBT. Mainly useful for the multisig process
where different wallets are needed for resolving the multisig address
and then signing for it.
@ajtowns ajtowns force-pushed the 202507-inq29-miner-act branch from f8ddfc7 to ae6ce5b Compare August 23, 2025 07:58
@ajtowns ajtowns added this to the 29.x milestone Aug 23, 2025
@ajtowns
Copy link
Author

ajtowns commented Aug 29, 2025

Been running this on my signet miner for a little while now and it seems to work as expected; would be ideal to get some independent confirmation prior to merging though. Believe these commits should be reasonable for upstreaming.

@benthecarman
Copy link

in commit ae6ce5b

for mutinynet i set the cli arg to bitcoin-cli --rpcwallet=custom_signet. This would now conflict, might want to do a check that rpcwallet isn't already set.

@ajtowns
Copy link
Author

ajtowns commented Aug 30, 2025

for mutinynet i set the cli arg to bitcoin-cli --rpcwallet=custom_signet. This would now conflict,

It only conflicts if you add the --wallets argument, at which point you would presumably remove the -rpcwallet argument. Even if you leave it there it will just be silently ignored rather than conflicting.

@ajtowns ajtowns merged commit bb5287a into bitcoin-inquisition:29.x Sep 2, 2025
18 checks passed
arminsabouri pushed a commit to arminsabouri/bitcoin that referenced this pull request Nov 30, 2025
c40dbbb test: Move `script_assets_tests` into its own suite (Hennadii Stepanov)

Pull request description:

  This PR ensures that the `script_assets_tests` test case is explicitly reported as "Skipped" when it is not run, making it clearer when running the test suite with `ctest`:

  - on the master branch @ 9355578:
  ```
  $ env -u DIR_UNIT_TEST_DATA ctest --test-dir build -j 16 -R "^script_"
  Internal ctest changing into directory: /home/hebasto/git/bitcoin/build
  Test project /home/hebasto/git/bitcoin/build
      Start 87: script_tests
      Start 83: script_p2sh_tests
      Start 85: script_segwit_tests
      Start 86: script_standard_tests
      Start 84: script_parse_tests
  1/5 Test bitcoin-inquisition#84: script_parse_tests ...............   Passed    0.11 sec
  2/5 Test bitcoin-inquisition#86: script_standard_tests ............   Passed    0.11 sec
  3/5 Test bitcoin-inquisition#85: script_segwit_tests ..............   Passed    0.12 sec
  4/5 Test bitcoin-inquisition#83: script_p2sh_tests ................   Passed    0.12 sec
  5/5 Test bitcoin-inquisition#87: script_tests .....................   Passed    0.36 sec

  100% tests passed, 0 tests failed out of 5

  Total Test time (real) =   0.37 sec
  ```
  - with this PR:
  ```
  $ env -u DIR_UNIT_TEST_DATA ctest --test-dir build -j 16 -R "^script_"
  Internal ctest changing into directory: /home/hebasto/git/bitcoin/build
  Test project /home/hebasto/git/bitcoin/build
      Start 83: script_assets_tests
      Start 88: script_tests
      Start 84: script_p2sh_tests
      Start 86: script_segwit_tests
      Start 87: script_standard_tests
      Start 85: script_parse_tests
  1/6 Test bitcoin-inquisition#85: script_parse_tests ...............   Passed    0.11 sec
  2/6 Test bitcoin-inquisition#83: script_assets_tests ..............***Skipped   0.12 sec
  3/6 Test bitcoin-inquisition#86: script_segwit_tests ..............   Passed    0.11 sec
  4/6 Test bitcoin-inquisition#87: script_standard_tests ............   Passed    0.11 sec
  5/6 Test bitcoin-inquisition#84: script_p2sh_tests ................   Passed    0.12 sec
  6/6 Test bitcoin-inquisition#88: script_tests .....................   Passed    0.36 sec

  100% tests passed, 0 tests failed out of 6

  Total Test time (real) =   0.37 sec

  The following tests did not run:
   83 - script_assets_tests (Skipped)
  $ env DIR_UNIT_TEST_DATA=/home/hebasto/git/bitcoin/qa-assets/unit_test_data ctest --test-dir build -j 16 -R "^script_"
  Internal ctest changing into directory: /home/hebasto/git/bitcoin/build
  Test project /home/hebasto/git/bitcoin/build
      Start 83: script_assets_tests
      Start 88: script_tests
      Start 84: script_p2sh_tests
      Start 86: script_segwit_tests
      Start 87: script_standard_tests
      Start 85: script_parse_tests
  1/6 Test bitcoin-inquisition#85: script_parse_tests ...............   Passed    0.11 sec
  2/6 Test bitcoin-inquisition#87: script_standard_tests ............   Passed    0.11 sec
  3/6 Test bitcoin-inquisition#86: script_segwit_tests ..............   Passed    0.11 sec
  4/6 Test bitcoin-inquisition#84: script_p2sh_tests ................   Passed    0.12 sec
  5/6 Test bitcoin-inquisition#88: script_tests .....................   Passed    0.35 sec
  6/6 Test bitcoin-inquisition#83: script_assets_tests ..............   Passed    1.58 sec

  100% tests passed, 0 tests failed out of 6

  Total Test time (real) =   1.58 sec
  ```

ACKs for top commit:
  maflcko:
    re-ACK c40dbbb 👈
  ajtowns:
    ACK c40dbbb
  achow101:
    ACK c40dbbb

Tree-SHA512: 25713e1c3b507b6f2a5fecc7b1ea285a6642b906c248769238a58fc0df48489ac5f7606778f9e3653b407b7f1d06563e1554d04321303b350c80eb888500cc5d
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