1
0

Pass make_tx function to ConfirmTxDialog

- allow 'spend max' when opening a channel (fixes #5698)
 - display amount minus fee when 'max' buttons are pressed
 - estimate fee of channel funding using a template with dummy address
This commit is contained in:
ThomasV
2019-11-13 09:20:19 +01:00
parent 970bd4e95f
commit 78813dcb7d
11 changed files with 138 additions and 76 deletions

View File

@@ -27,6 +27,11 @@ if TYPE_CHECKING:
HTLC_TIMEOUT_WEIGHT = 663
HTLC_SUCCESS_WEIGHT = 703
LN_MAX_FUNDING_SAT = pow(2, 24)
# dummy address for fee estimation of funding tx
def ln_dummy_address():
return redeem_script_to_address('p2wsh', '')
class Keypair(NamedTuple):
pubkey: bytes