If trampoline is enabled, do not add non-trampoline nodes to invoices
Rationale: The sender should not assume that they share the same list of hardcoded trampolines as the receiver.
This commit is contained in:
@@ -921,6 +921,8 @@ class Channel(AbstractChannel):
|
||||
util.trigger_callback('channel', self.lnworker.wallet, self)
|
||||
|
||||
def is_frozen_for_receiving(self) -> bool:
|
||||
if self.lnworker and self.lnworker.uses_trampoline() and not self.lnworker.is_trampoline_peer(self.node_id):
|
||||
return True
|
||||
return self.storage.get('frozen_for_receiving', False)
|
||||
|
||||
def set_frozen_for_receiving(self, b: bool) -> None:
|
||||
|
||||
Reference in New Issue
Block a user