More accurate elements commitment tx size estimation

This commit is contained in:
Greg Sanders
2023-02-03 11:32:29 -05:00
committed by Alex Myers
parent dc4ae9deb4
commit eef0c087fc
4 changed files with 27 additions and 19 deletions

View File

@@ -8,6 +8,10 @@ import time
EXPERIMENTAL_FEATURES = env("EXPERIMENTAL_FEATURES", "0") == "1"
COMPAT = env("COMPAT", "1") == "1"
# Big enough to make channels with 10k effective capacity, including Elements channels
# which have bigger txns
CHANNEL_SIZE = 50000
def default_ln_port(network: str) -> int:
network_map = {