From 5677d37847f4b506c44de9704902c3aa1f91db31 Mon Sep 17 00:00:00 2001 From: levoncrypto <95240473+levoncrypto@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:11:26 +0400 Subject: [PATCH] Fix masternode payout spend (#73) --- electrum_dash/plugins/trezor/trezor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum_dash/plugins/trezor/trezor.py b/electrum_dash/plugins/trezor/trezor.py index cd6a64a1e..1df29aad8 100644 --- a/electrum_dash/plugins/trezor/trezor.py +++ b/electrum_dash/plugins/trezor/trezor.py @@ -379,7 +379,7 @@ def tx_inputs(self, tx: Transaction, *, for_sig=False, keystore: 'TrezorKeyStore if txin.script_sig.startswith(b"\xc4") and txin.nsequence == 0xffffffff: prev_index = 1 else: - prev_index = txin.nsequence + prev_index = txin.prevout.out_idx else: if for_sig: assert isinstance(tx, PartialTransaction)