From aa16187d65677d51e8b43a1d8100b718d2637328 Mon Sep 17 00:00:00 2001 From: MMGen Date: Mon, 4 Jun 2018 20:50:26 +0000 Subject: [PATCH] tx.py: fix locktime + rbf bug - allow the simultaneous use of --rbf and --locktime --- mmgen/tx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mmgen/tx.py b/mmgen/tx.py index b0c71b9a..0e7ffbd0 100755 --- a/mmgen/tx.py +++ b/mmgen/tx.py @@ -1311,8 +1311,8 @@ class MMGenTX(MMGenObject): change_amt = self.get_inputs_from_user(tw) # only after we have inputs - if locktime: self.inputs[0].sequence = g.max_int - 1 - if opt.rbf: self.inputs[0].sequence = g.max_int - 2 + if opt.rbf: self.inputs[0].sequence = g.max_int - 2 # handles the locktime case too + elif locktime: self.inputs[0].sequence = g.max_int - 1 chg_idx = self.get_chg_output_idx()