1
0

remove lnworker.enable_htlc_settle_onchain: not used

I think this has only been used for manual testing
This commit is contained in:
ThomasV
2025-03-11 12:11:14 +01:00
parent 083b32be3b
commit c42201ccac
2 changed files with 0 additions and 6 deletions

View File

@@ -353,11 +353,6 @@ class LNWalletWatcher(LNWatcher):
# self.logger.debug(
# f"pending redeem for {prevout}. waiting for {name}: CSV "
# f"({local_height=}, {wanted_height=}, {prev_height.height=}, {sweep_info.csv_delay=})")
if not (sweep_info.cltv_abs or sweep_info.csv_delay):
# used to control settling of htlcs onchain for testing purposes
# careful, this prevents revocation as well
if not self.lnworker.enable_htlc_settle_onchain:
return
if can_broadcast:
self.logger.info(f'we can broadcast: {name}')
if await self.network.try_broadcasting(new_tx, name):

View File

@@ -851,7 +851,6 @@ class LNWallet(LNWorker):
self.logs = defaultdict(list) # type: Dict[str, List[HtlcLog]] # key is RHASH # (not persisted)
# used in tests
self.enable_htlc_settle = True
self.enable_htlc_settle_onchain = True
self.enable_htlc_forwarding = True
# note: accessing channels (besides simple lookup) needs self.lock!