Skip to content

import descriptor on --dry-run #4377

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

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

Conversation

felipelincoln
Copy link
Contributor

@felipelincoln felipelincoln commented Jul 3, 2025

using dry-run on ord wallet inscribe --dry-run will return the commit and reveal psbts, we can sign (bitcoin-cli walletprocesspsbt) and broadcast (bitcoin-cli sendrawtransaction) the commit transaction but we won't be able to spend the generated utxo (the first output) because our wallet will not have the taproot descriptor to spend it

This PR adds the backup_recovery_key to the dry_run as well.

Comment on lines +81 to +84
if !self.no_backup {
Self::backup_recovery_key(wallet, recovery_key_pair)?;
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't really want to pollute the backups with keys for transactions that are potentially not broadcast. I would be fine with printing out the key to accomodate your use case

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