download welist

This commit is contained in:
2025-07-04 13:22:05 -04:00
parent e542c82ee1
commit 4d021e1d82
7 changed files with 3095 additions and 1321 deletions

View File

@@ -15,8 +15,8 @@ import datetime
import urllib.request
import urllib.parse
from .bal import BalPlugin
from . import util as Util
from . import willexecutors as Willexecutors
from .util import Util
from .willexecutors import Willexecutors
if TYPE_CHECKING:
from .wallet_db import WalletDB
from .simple_config import SimpleConfig
@@ -38,6 +38,7 @@ def reduce_outputs(in_amount, out_amount, fee, outputs):
for output in outputs:
output.value = math.floor((in_amount-fee)/out_amount * output.value)
"""
#TODO: put this method inside wallet.db to replace or complete get_locktime_for_new_transaction
def get_current_height(network:'Network'):
#if no network or not up to date, just set locktime to zero
@@ -57,7 +58,7 @@ def get_current_height(network:'Network'):
# discourage "fee sniping"
height = min(chain_height, server_height)
return height
"""