Skip to content

Fix incorrect check in cache_unsigned_tx_pieces#830

Open
bigspider wants to merge 1 commit intobitcoin-core:masterfrom
bigspider:psbt_fix
Open

Fix incorrect check in cache_unsigned_tx_pieces#830
bigspider wants to merge 1 commit intobitcoin-core:masterfrom
bigspider:psbt_fix

Conversation

@bigspider
Copy link
Copy Markdown
Contributor

self.tx is not None is always true because the constructor sets self.tx = CTransaction() when None is passed, which causes a call to setup_from_tx also for PSBT version 2, contrarily to the function's stated intent in the documentation.

`self.tx is not None` is always true because the constructor sets
`self.tx = CTransaction()` when `None` is passed, which causes a
call to `setup_from_tx` also for PSBT version 2, contrarily to the
function's stated intent in the documentation.
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.

1 participant