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

Bug signing 1-of-2 multisig transaction when recipient is same wallet #23

Closed
kdmukai opened this issue Jun 23, 2021 · 6 comments
Closed

Comments

@kdmukai
Copy link
Contributor

kdmukai commented Jun 23, 2021

Both keys are SeedSigner testnet devices in Specter.

Transaction is sending coins back to a new addr in the same wallet.

SeedSigner is hanging on "Parsing PSBT"

Traceback (most recent call last):
  File "main.py", line 12, in <module>
    controller.start(DEBUG)
  File "/home/pi/seedsigner/controller.py", line 69, in start
    self.show_main_menu()
  File "/home/pi/seedsigner/controller.py", line 91, in show_main_menu
    ret_val = self.show_sign_transaction()
  File "/home/pi/seedsigner/controller.py", line 339, in show_sign_transaction
    signer.parse_psbt(raw_pbst)
  File "./helpers/psbt_signer.py", line 76, in parse_psbt
    (self.change, self.fee, self.spend, self.destinationaddress) = PSBTSigner.change_fee_spend_amounts(self.tx, self.inp_amount, policy, self.seed_storage.get_network())
  File "./helpers/psbt_signer.py", line 260, in change_fee_spend_amounts
    return (change, fee, spend, destinationaddress)
UnboundLocalError: local variable 'destinationaddress' referenced before assignment

I can confirm that the same device/seed works fine signing a tx for an address in a different wallet. So it's just the self-send/cycling coins that seems to cause problems.

@SeedSigner
Copy link
Owner

We had this come up just last night and I believe @newtonick has some new code in his add_wallet_support branch that resolved this?

@newtonick
Copy link
Collaborator

@kdmukai do you remember which branch or release you found this issue on?

@newtonick
Copy link
Collaborator

moving to PSBTParser has resolved this issue.

@SeedSigner
Copy link
Owner

Going to wait until the change gets worked into a release, then will close this.

@newtonick
Copy link
Collaborator

@SeedSigner I believe this issue can be closed

@SeedSigner
Copy link
Owner

Thank you for the reminder.

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

No branches or pull requests

3 participants