From 5a8388fbc1b06a24f498e4a33beec0f54c3b3fe1 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Wed, 31 Oct 2018 12:44:18 +0100 Subject: [PATCH] wallet: fix segwit checksum computation --- src/apps/wallet/sign_tx/writers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/wallet/sign_tx/writers.py b/src/apps/wallet/sign_tx/writers.py index 0d03334be..6d6b954e2 100644 --- a/src/apps/wallet/sign_tx/writers.py +++ b/src/apps/wallet/sign_tx/writers.py @@ -33,7 +33,7 @@ def write_tx_input_check(w, i: TxInputType): for n in i.address_n: write_uint32(w, n) write_uint32(w, i.sequence) - write_uint32(w, i.amount or 0) + write_uint64(w, i.amount or 0) def write_tx_input_decred(w, i: TxInputType):