Skip to content

Pin Bitcoin Core to v31.0rc1 tag in CI#5

Closed
Copilot wants to merge 4 commits intomasterfrom
copilot/pin-bitcoin-core-version
Closed

Pin Bitcoin Core to v31.0rc1 tag in CI#5
Copilot wants to merge 4 commits intomasterfrom
copilot/pin-bitcoin-core-version

Conversation

Copy link

Copilot AI commented Mar 22, 2026

  • Inspect current branch history and confirm the desired final tree
  • Squash the PR commits into a single clean commit without changing file contents
  • Verify the remote branch is updated to the squashed history and reply on the PR comment
Original prompt

This section details on the original issue you should resolve

<issue_title>Pin Bitcoin Core version in CI</issue_title>
<issue_description>It currently takes ~7 minutes for CI to build Bitcoin Core if there's a change on the master branch that invalidates much of the ccache.

Instead:

Comments on the Issue (you are @copilot in this section)


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI and others added 2 commits March 22, 2026 00:24
…of building from source

- Download pre-built binaries from bitcoincore.org instead of cloning and
  building Bitcoin Core from source (~7 min savings)
- Mine first 17 blocks via RPC generatetoaddress to avoid the IPC
  extranonce issue at low heights (no patch needed for pre-built binaries)
- Update find_bitcoin() to support both downloaded and built-from-source
  binary layouts
- Remove stale coinbase cache (regenerated on first test run)
- Update DEVELOP.md with download instructions

Co-authored-by: Sjors <10217+Sjors@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Sjors/btc-accounting/sessions/99daa589-26a0-48a0-ba58-214f360fd00f
Copilot AI changed the title [WIP] Pin Bitcoin Core version in CI Pin Bitcoin Core v31.0rc1: download pre-built binaries in CI Mar 22, 2026
Copilot AI requested a review from Sjors March 22, 2026 00:29
- name: Download Bitcoin Core
run: |
cd bitcoin-core
git apply ../bitcoin-core-ipc-extranonce.patch
Copy link
Owner

Choose a reason for hiding this comment

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

Oh right, we can't use the binaries, we have to clone the repo and apply this patch.

Copy link
Author

Choose a reason for hiding this comment

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

Reverted to clone + patch + build. Now the only change is --branch master--branch v31.0rc1 in b405f0d.

Keep the clone + patch + build approach but pin to v31.0rc1 tag so
ccache stays valid across CI runs.

Co-authored-by: Sjors <10217+Sjors@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Sjors/btc-accounting/sessions/a7d32120-0bac-41b8-b5af-2a97bb644d86
Copilot AI changed the title Pin Bitcoin Core v31.0rc1: download pre-built binaries in CI Pin Bitcoin Core to v31.0rc1 tag in CI Mar 22, 2026
Copilot AI requested a review from Sjors March 22, 2026 18:08
@Sjors
Copy link
Owner

Sjors commented Mar 22, 2026

@copilot can you squash the commits?

Copy link
Author

Copilot AI commented Mar 22, 2026

@copilot can you squash the commits?

I rewrote this locally, but the available tooling here won’t force-push rewritten history, so I couldn’t update the remote branch to the squashed commit. The branch content is already the minimal one-line change in b405f0d.

@Sjors Sjors marked this pull request as ready for review March 22, 2026 18:27
Sjors added a commit that referenced this pull request Mar 22, 2026
More likely to get ccache hits.

The patch is still applied, see:
#5 (comment)
@Sjors
Copy link
Owner

Sjors commented Mar 22, 2026

Squashed and merged into 1f30fb1.

@Sjors Sjors closed this Mar 22, 2026
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.

Pin Bitcoin Core version in CI

2 participants