swaps: let plugin override self.is_server (config variable may be ser and plugin not active)
This commit is contained in:
@@ -211,7 +211,7 @@ class SwapManager(Logger):
|
|||||||
for k, swap in self.swaps.items():
|
for k, swap in self.swaps.items():
|
||||||
if swap.prepay_hash is not None:
|
if swap.prepay_hash is not None:
|
||||||
self.prepayments[swap.prepay_hash] = bytes.fromhex(k)
|
self.prepayments[swap.prepay_hash] = bytes.fromhex(k)
|
||||||
self.is_server = self.config.get('enable_plugin_swapserver', False)
|
self.is_server = False # overriden by swapserver plugin if enabled
|
||||||
self.is_initialized = asyncio.Event()
|
self.is_initialized = asyncio.Event()
|
||||||
|
|
||||||
def start_network(self, network: 'Network'):
|
def start_network(self, network: 'Network'):
|
||||||
|
|||||||
Reference in New Issue
Block a user