ElementsProject / ElementsProject/elements

claimpegin optional `claim_script` argument is pretty much useless

Open
#300 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.2k
Forks
416
Avg merge
1d 23h
Merged PRs (30d)
15

Description

As-is, if the wallet doesn't have the `claim_script` address in its address book, it will not be able to sign it regardless, requiring a `createrawpegin` step then pass to the wallet that knows how to sign the input.

The only effect the optional argument has is that it can find a specific peg-in output, if there are multiple with unique output scripts, bypassing the "return first seen" behavior currently in the wallet code. Our wallet doesn't even support multiple outputs per peg-in transaction, so this is never exposed to the user.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.