From 01b66a58582bf18f042910f16e5862c6cdfb5a59 Mon Sep 17 00:00:00 2001 From: matejcik Date: Fri, 18 Sep 2020 15:24:32 +0200 Subject: [PATCH] fix(python): always fill TransactionType.lock_time --- python/src/trezorlib/btc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/trezorlib/btc.py b/python/src/trezorlib/btc.py index b152416939..897ed7e64d 100644 --- a/python/src/trezorlib/btc.py +++ b/python/src/trezorlib/btc.py @@ -50,7 +50,7 @@ def from_json(json_dict): return messages.TransactionType( version=json_dict["version"], - lock_time=json_dict.get("locktime"), + lock_time=json_dict.get("locktime", 0), inputs=[make_input(vin) for vin in json_dict["vin"]], bin_outputs=[make_bin_output(vout) for vout in json_dict["vout"]], )