remove lnworker.enable_htlc_settle_onchain: not used
I think this has only been used for manual testing
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user