Skip to content

Implement backupwallet method and test #247

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

Merged
merged 1 commit into from
Jun 16, 2025

Conversation

GideonBature
Copy link
Contributor

The JSON-RPC method backupwallet does return null. We want to test this to catch any changes in behavior in future Core versions.

This PR adds a client function that errors if the return value is anything other than null, along with an integration test that calls this function.

Ref: #116

Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK 8c14cd0

@tcharding tcharding merged commit 4c71c02 into rust-bitcoin:master Jun 16, 2025
29 checks passed
tcharding added a commit that referenced this pull request Jun 16, 2025
…ration test

7eb3702 Remove redundant tmp file existence check in wallet integration test (GideonBature)

Pull request description:

  This PR removes the redundant `if file_path.exists()` check before deleting a temporary file.

  As pointed out during review of `backupwallet` integration test [here](#247 (comment)), the check is unnecessary.

ACKs for top commit:
  tcharding:
    ACK 7eb3702

Tree-SHA512: d2731742b13fc5395d5f691e131db3008f9738117158ebb0ea2dd2782a647eaba17a5481e7d8875d139ddb1e514ea1cbd6186c7cf935f5adcb7522eee06dc40d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants