mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
tests: notification response fixes
tests: notification response fixes
This commit is contained in:
committed by
Rusty Russell
parent
8e14b3ff8f
commit
4e5e38f4b0
@@ -31,13 +31,13 @@ def init(options, configuration, plugin, **kwargs):
|
|||||||
|
|
||||||
|
|
||||||
@plugin.subscribe("connect")
|
@plugin.subscribe("connect")
|
||||||
def on_connect(plugin, id, address, **kwargs):
|
def on_connect(plugin, connect, **kwargs):
|
||||||
plugin.log("Received connect event for peer {}".format(id))
|
plugin.log("Received connect event for peer {}".format(connect))
|
||||||
|
|
||||||
|
|
||||||
@plugin.subscribe("disconnect")
|
@plugin.subscribe("disconnect")
|
||||||
def on_disconnect(plugin, id, **kwargs):
|
def on_disconnect(plugin, disconnect, **kwargs):
|
||||||
plugin.log("Received disconnect event for peer {}".format(id))
|
plugin.log("Received disconnect event for peer {}".format(disconnect))
|
||||||
|
|
||||||
|
|
||||||
@plugin.subscribe("invoice_payment")
|
@plugin.subscribe("invoice_payment")
|
||||||
|
|||||||
@@ -94,8 +94,8 @@ def init(options, configuration, plugin):
|
|||||||
|
|
||||||
|
|
||||||
@plugin.subscribe("connect")
|
@plugin.subscribe("connect")
|
||||||
def on_connect(plugin, id, address):
|
def on_connect(plugin, connect):
|
||||||
plugin.log("Received connect event for peer {}".format(id))
|
plugin.log("Received connect event for peer {}".format(connect))
|
||||||
|
|
||||||
|
|
||||||
plugin.add_option('greeting', 'Hello', 'The greeting I should use.')
|
plugin.add_option('greeting', 'Hello', 'The greeting I should use.')
|
||||||
|
|||||||
@@ -96,8 +96,8 @@ def init(options, configuration, plugin):
|
|||||||
|
|
||||||
|
|
||||||
@plugin.subscribe("connect")
|
@plugin.subscribe("connect")
|
||||||
def on_connect(plugin, id, address, **kwargs):
|
def on_connect(plugin, connect, **kwargs):
|
||||||
plugin.log("Received connect event for peer {}".format(id))
|
plugin.log("Received connect event for peer {}".format(connect))
|
||||||
|
|
||||||
|
|
||||||
plugin.add_option('greeting', 'Hello', 'The greeting I should use.')
|
plugin.add_option('greeting', 'Hello', 'The greeting I should use.')
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ blocks_catched = []
|
|||||||
|
|
||||||
|
|
||||||
@plugin.subscribe("block_added")
|
@plugin.subscribe("block_added")
|
||||||
def notify_block_added(plugin, block, **kwargs):
|
def notify_block_added(plugin, block_added, **kwargs):
|
||||||
global blocks_catched
|
global blocks_catched
|
||||||
blocks_catched.append(block["height"])
|
blocks_catched.append(block_added["height"])
|
||||||
|
|
||||||
|
|
||||||
@plugin.method("blockscatched")
|
@plugin.method("blockscatched")
|
||||||
|
|||||||
Reference in New Issue
Block a user