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

use p2pkh vout instead of p2pk for change when -pubkey specified #638

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

DeckerSU
Copy link

@DeckerSU DeckerSU commented Oct 16, 2024

As is well known, Iguana uses P2PKH UTXOs for splitting and converts them into 10,000 zat P2PK UTXOs for notarizing. However, it cannot split from P2PK UTXOs. When you run komodod with the -pubkey argument, specifying your notary pubkey, any transaction created inside the daemon will send change (if any) as a P2PK output, i.e., to the <pubkey> OP_CHECKSIG script. As a result, Iguana cannot split such UTXOs. This change modifies that behavior, making the change a standard P2PKH output if a pubkey is specified.

this will help Iguana identify the change UTXOs and use them for splitting.
Copy link

@smk762 smk762 left a comment

Choose a reason for hiding this comment

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

Nice, this should help stop running out of utxos while a balance exists.

@DeckerSU
Copy link
Author

Nice, this should help stop running out of utxos while a balance exists.

Yes, except the cases when all remaining balance it's generated coins.

@DeckerSU DeckerSU merged commit 2651eaf into dev Oct 17, 2024
18 checks passed
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