electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit eb4463063f1bd72665f059d69ca0cd879f1726ff
parent ed0cbf11cda8243f17d9206fb43a12c46c26c5c4
Author: ThomasV <thomasv@electrum.org>
Date:   Wed,  4 Apr 2018 15:26:49 +0200

Merge pull request #4214 from SomberNight/payto_read_rbf_from_config

payto: get RBF setting from config
Diffstat:
Mlib/commands.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/commands.py b/lib/commands.py @@ -412,6 +412,8 @@ class Commands: tx = self.wallet.make_unsigned_transaction(coins, final_outputs, self.config, fee, change_addr) if locktime != None: tx.locktime = locktime + if rbf is None: + rbf = self.config.get('use_rbf', True) if rbf: tx.set_rbf(True) if not unsigned: @@ -420,7 +422,7 @@ class Commands: return tx @command('wp') - def payto(self, destination, amount, fee=None, from_addr=None, change_addr=None, nocheck=False, unsigned=False, rbf=False, password=None, locktime=None): + def payto(self, destination, amount, fee=None, from_addr=None, change_addr=None, nocheck=False, unsigned=False, rbf=None, password=None, locktime=None): """Create a transaction. """ tx_fee = satoshis(fee) domain = from_addr.split(',') if from_addr else None @@ -428,7 +430,7 @@ class Commands: return tx.as_dict() @command('wp') - def paytomany(self, outputs, fee=None, from_addr=None, change_addr=None, nocheck=False, unsigned=False, rbf=False, password=None, locktime=None): + def paytomany(self, outputs, fee=None, from_addr=None, change_addr=None, nocheck=False, unsigned=False, rbf=None, password=None, locktime=None): """Create a multi-output transaction. """ tx_fee = satoshis(fee) domain = from_addr.split(',') if from_addr else None