From 8a5d27dcf44e31200f2b50fa3aee39180b5dfb47 Mon Sep 17 00:00:00 2001 From: Laser Yuan Date: Fri, 16 Mar 2018 12:06:33 +0800 Subject: [PATCH] Fix the error: locktime is always reset to zero when serialize the json data The "lockTime" field in the json object was ignored due to the wrong attribute name "locktime" was called. --- lib/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands.py b/lib/commands.py index 9106b1ca4..8435cf9ec 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -201,7 +201,7 @@ class Commands: keypairs = {} inputs = jsontx.get('inputs') outputs = jsontx.get('outputs') - locktime = jsontx.get('locktime', 0) + locktime = jsontx.get('lockTime', 0) for txin in inputs: if txin.get('output'): prevout_hash, prevout_n = txin['output'].split(':')