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

6
qt.py
View File

@@ -390,6 +390,7 @@ class Plugin(BalPlugin,Logger):
def load_wallet(self,wallet, main_window):
self.logger.info("HOOK load wallet")
w = self.get_window(main_window)
#havetoupdate = Util.fix_will_settings_tx_fees(wallet.db)
w.wallet = wallet
w.init_will()
w.willexecutors = Willexecutors.get_willexecutors(self, update=False, bal_window=w)
@@ -575,6 +576,7 @@ class BalWindow(Logger):
self.heirs = Heirs._validate(Heirs(self.wallet.db))
if not self.will:
self.will=self.wallet.db.get_dict("will")
Util.fix_will_tx_fees(self.will)
if self.will:
self.willitems = {}
try:
@@ -587,6 +589,8 @@ class BalWindow(Logger):
if not self.will_settings:
self.will_settings=self.wallet.db.get_dict("will_settings")
Util.fix_will_settings_tx_fees(self.will_settings)
self.logger.info("will_settings: {}".format(self.will_settings))
if not self.will_settings:
Util.copy(self.will_settings,self.bal_plugin.default_will_settings())
@@ -1856,7 +1860,7 @@ class BalBuildWillDialog(BalDialog):
def __init__(self,bal_window,parent=None):
if not parent:
parent = bal_window.window
BalDialog.__init__(self,parent,babl_window.bal_plugin, "Building Will")
BalDialog.__init__(self,parent,bal_window.bal_plugin, "Building Will")
self.updatemessage.connect(self.update)
self.bal_window=bal_window
self.message_label = QLabel("Building Will:")