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

Unable to unlock every UTXO using lockunspent #148

Closed
chris-belcher opened this issue Nov 1, 2020 · 0 comments · Fixed by #153
Closed

Unable to unlock every UTXO using lockunspent #148

chris-belcher opened this issue Nov 1, 2020 · 0 comments · Fixed by #153

Comments

@chris-belcher
Copy link

The call lockunspent allows unlocking every UTXO, but I think this cant be done with rust-bitcoincore-rpc.

The way to unlock everything is to just pass true, but the way the call is currently implemented always passes another list (e.g. true []). Even if that list is empty Core will not unlock everything.

Examples:

let rpc: Client;
rpc.unlock_unspent(&[]); //does not unlock every UTXO
rpc.call("lockunspent", &[Value::Bool(true)]); //does unlock every UTXO
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 a pull request may close this issue.

1 participant