refresh button. locktim is correctly saved, minor bugfix in checking confirmed transaction

This commit is contained in:
2026-02-05 17:11:11 -04:00
parent 1836cdd892
commit d86b941fcb
3 changed files with 53 additions and 40 deletions

10
bal.py
View File

@@ -68,15 +68,9 @@ class BalPlugin(BasePlugin):
self.base_dir = os.path.join(config.electrum_path(), "bal")
self.plugin_dir = os.path.split(os.path.realpath(__file__))[0]
zipfile = "/".join(self.plugin_dir.split("/")[:-1])
# print("real path",os.path.realpath(__file__))
# self.logger.info(self.base_dir)
# print("base_dir:", self.base_dir)
# print("suca:",zipfile)
# print("plugin_dir:", self.plugin_dir)
import sys
sys.path.insert(0, zipfile)
# print("sono state listate?")
self.parent = parent
self.config = config
self.name = name
@@ -145,13 +139,11 @@ class BalPlugin(BasePlugin):
self.HIDE_REPLACED.set(self._hide_replaced)
def validate_will_settings(self, will_settings):
# print(type(will_settings))
# print(will_settings.get('baltx_fees',1),1)
if int(will_settings.get("baltx_fees", 1)) < 1:
will_settings["baltx_fees"] = 1
if not will_settings.get("threshold"):
will_settings["threshold"] = "180d"
if not will_settings.get("locktime") == "":
if not will_settings.get("locktime"):
will_settings["locktime"] = "1y"
return will_settings