fix wallet txfees
This commit is contained in:
19
util.py
19
util.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user