Skip to content
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

Support for testnet4 and Legacy RPC Compatibility with bitcoind Backend #985

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dwertent
Copy link

@dwertent dwertent commented Mar 5, 2025

Overview

This PR introduces support for testnet4, as recently introduced by the Bitcoin community. Additionally, it enhances compatibility by enabling support for Legacy RPC, allowing the wallet to connect to the bitcoind backend in addition to the existing btcd backend.

Key Changes

If requested, I can split this work into two separate PRs.

  • Testnet4 Support:

    • This implementation imports the testnet4 support from the PR opened against btcd (feat: Add testnet4 chain support (recreated) btcd#2318).
    • Once that PR is merged, this PR will enable full support for testnet4 in btcwallet.
    • We should update the go.mod import accordingly once the upstream PR is merged.
  • Backend Selection Enhancement (Fixes Add bitcoind Support as a Backend Option in btcwallet #983 ):

    • Adds support for bitcoind as a backend, in addition to the existing btcd backend.
    • Implements the --backend flag to allow users to select their preferred backend.

How to Use

  • To run on testnet4, specify the --testnet4 flag.
  • To select a backend, use the --backend flag:
    --backend=btcd   # Default backend
    --backend=bitcoind # New option

Impact & Compatibility

No breaking changes – existing behavior remains unchanged.
Fully backward-compatible – extends functionality without modifying interfaces or APIs.

Once the btcd PR #2318 is merged, we should update the go.mod dependency to finalize testnet4 support.

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.

Add bitcoind Support as a Backend Option in btcwallet
1 participant