forked from bitcoinafterlife/bal-electrum-plugin
balconfig
This commit is contained in:
3
will.py
3
will.py
@@ -319,6 +319,7 @@ class Will:
|
||||
locktime = Util.get_current_height(wallet.network)
|
||||
tx = PartialTransaction.from_io(utxo_to_spend, [out], locktime=locktime, version=2)
|
||||
tx.set_rbf(True)
|
||||
print("fees_per_byte:",fees_per_byte)
|
||||
fee=tx.estimated_size()*fees_per_byte
|
||||
if balance -fee >0:
|
||||
out = PartialTxOutput.from_address_and_value(change_addresses[0],balance - fee)
|
||||
@@ -329,7 +330,7 @@ class Will:
|
||||
return tx
|
||||
|
||||
else:
|
||||
_logger.debug("balance - fee <=0")
|
||||
_logger.debug(f"balance({balance}) - fee({fee}) <=0")
|
||||
pass
|
||||
else:
|
||||
_logger.debug("len utxo_to_spend <=0")
|
||||
|
||||
Reference in New Issue
Block a user