fix wallet txfees

This commit is contained in:
2026-01-04 13:31:46 -04:00
parent b384ac562c
commit 51de310621
3 changed files with 26 additions and 4 deletions

19
util.py
View File

@@ -435,3 +435,22 @@ class Util:
def copy(dicto,dictfrom):
for k,v in dictfrom.items():
dicto[k]=v
def fix_will_settings_tx_fees(will_settings):
tx_fees = will_settings.get('tx_fees',False)
have_to_update=False
if tx_fees:
will_settings['baltx_fees']=tx_fees
del will_settings['tx_fees']
have_to_update=True
return have_to_update
def fix_will_tx_fees(will):
have_to_update = False
for txid,willitem in will.items():
tx_fees=willitem.get('tx_fees',False)
if tx_fees:
will[txid]['baltx_fees']=tx_fees
del will[txid]['tx_fees']
have_to_update=True
return have_to_update