1
0

lnpeer: review safety check re channel open flow, and tweak params

This commit is contained in:
SomberNight
2020-06-08 21:17:23 +02:00
parent 947af92126
commit fc39295d20
3 changed files with 105 additions and 68 deletions

View File

@@ -312,6 +312,11 @@ def relayfee(network: 'Network' = None) -> int:
return fee
# see https://github.com/bitcoin/bitcoin/blob/a62f0ed64f8bbbdfe6467ac5ce92ef5b5222d1bd/src/policy/policy.cpp#L14
DUST_LIMIT_DEFAULT_SAT_LEGACY = 546
DUST_LIMIT_DEFAULT_SAT_SEGWIT = 294
def dust_threshold(network: 'Network' = None) -> int:
"""Returns the dust limit in satoshis."""
# Change <= dust threshold is added to the tx fee