1
0

use maxint-2 to signal RBF, in order to standardize with Bitcoin Core

This commit is contained in:
ThomasV
2017-03-13 11:02:25 +01:00
parent a2fcb2ba8f
commit 2d8df85aab
5 changed files with 9 additions and 8 deletions

View File

@@ -414,7 +414,7 @@ class Commands:
coins = self.wallet.get_spendable_coins(domain)
tx = self.wallet.make_unsigned_transaction(coins, final_outputs, self.config, fee, change_addr)
if rbf:
tx.set_sequence(0)
tx.set_rbf(True)
if not unsigned:
self.wallet.sign_transaction(tx, self._password)
return tx