1
0

anchors: switch to zero-fee-htlcs

* sets the weight of htlc transactions to zero, thereby putting a zero
  fee for the htlc transactions
* add inputs to htlc-tx for fee bumping
* switches feature flags
* disable anchor test vectors, which are now partially invalid
This commit is contained in:
bitromortac
2021-10-15 11:08:10 +02:00
committed by ThomasV
parent d4222432f4
commit ea584e13fc
7 changed files with 107 additions and 17 deletions

View File

@@ -903,7 +903,7 @@ class Channel(AbstractChannel):
def has_anchors(self) -> bool:
channel_type = ChannelType(self.storage.get('channel_type'))
return bool(channel_type & ChannelType.OPTION_ANCHOR_OUTPUTS)
return bool(channel_type & ChannelType.OPTION_ANCHORS_ZERO_FEE_HTLC_TX)
def get_wallet_addresses_channel_might_want_reserved(self) -> Sequence[str]:
assert self.is_static_remotekey_enabled()