cryptoadvance / specter-desktop

A desktop GUI for Bitcoin Core optimised to work with hardware wallets
MIT License
799 stars 238 forks source link

"Electrum was unable to parse your transaction" #484

Closed mcsnubbs closed 4 years ago

mcsnubbs commented 4 years ago

In Specter 0.7.2 I've created a multisig wallet using multiple types of wallets. If I create a PSBT in Specter and bring it over to an electrum wallet for the first signature I get the following error:

"Electrum was unable to parse your transaction: SerializationError('PSBT input cannot have both PSBT_IN_NON_WITNESS_UTXO and PSBT_IN_WITNESS_UTXO')"

Oddly enough, if I sign the PSBT with another wallet (eg Cobo Vault), then bring the PSBT to electrum, electrum handles the PSBT without error. Im assuming that Specter is incorrectly constructing the PSBTs for electrum?

stepansnigirev commented 4 years ago

Looks like Electrum doesn't like when both witness utxo and full previous tx are present in the psbt transaction. Both are included by default in Core 0.20.1, so looks like we need to remove full prevtx. Thanks for reporting!

Fonta1n3 commented 4 years ago

Looks like Electrum doesn't like when both witness utxo and full previous tx are present in the psbt transaction. Both are included by default in Core 0.20.1, so looks like we need to remove full prevtx. Thanks for reporting!

@mcsnubbs just needs to update Electrum to the latest beta release and it will work, I had the same issues and can confirm latest beta electrum fixes it.

mcsnubbs commented 4 years ago

Thank you both!

k9ert commented 4 years ago

Assuming that @Fonta1n3 is right, i'm closing this issue. Feel free to open again if this doesn't solve it. Thank you @Fonta1n3 for the hint.