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