tests: notification response fixes

tests: notification response fixes
This commit is contained in:
Shahana Farooqui 2023-06-29 10:30:30 -07:00 committed by Rusty Russell
parent 8e14b3ff8f
commit 4e5e38f4b0
4 changed files with 10 additions and 10 deletions

View File

@ -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")

View File

@ -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.')

View File

@ -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.')

View File

@ -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")