Skip to content

Commit

Permalink
refactor: unify feature_notifications.py after #5522 with bitcoin's c…
Browse files Browse the repository at this point in the history
…odebase
  • Loading branch information
knst committed Oct 24, 2024
1 parent aaccc9e commit ad2c5a5
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions test/functional/feature_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,17 @@ def setup_network(self):
os.mkdir(self.instantsendnotify_dir)

# -alertnotify and -blocknotify on node0, walletnotify on node1
self.extra_args[0].append("-alertnotify=echo > {}".format(os.path.join(self.alertnotify_dir, '%s')))
self.extra_args[0].append("-blocknotify=echo > {}".format(os.path.join(self.blocknotify_dir, '%s')))
self.extra_args[1].append("-rescan")
self.extra_args[1].append("-walletnotify=echo %h_%b > {}".format(os.path.join(self.walletnotify_dir, notify_outputname('%w', '%s'))))

# -chainlocknotify on node0, -instantsendnotify on node1
self.extra_args[0].append("-chainlocknotify=echo > {}".format(os.path.join(self.chainlocknotify_dir, '%s')))
self.extra_args[1].append("-instantsendnotify=echo > {}".format(os.path.join(self.instantsendnotify_dir, notify_outputname('%w', '%s'))))
self.extra_args = [[
"-alertnotify=echo > {}".format(os.path.join(self.alertnotify_dir, '%s')),
"-blocknotify=echo > {}".format(os.path.join(self.blocknotify_dir, '%s')),
"-chainlocknotify=echo > {}".format(os.path.join(self.chainlocknotify_dir, '%s')),
], [
"-rescan",
"-walletnotify=echo %h_%b > {}".format(os.path.join(self.walletnotify_dir, notify_outputname('%w', '%s'))),
"-instantsendnotify=echo > {}".format(os.path.join(self.instantsendnotify_dir, notify_outputname('%w', '%s'))),
],
[], [], [], []]

self.wallet_names = [self.default_wallet_name, self.wallet]
super().setup_network()
Expand Down

0 comments on commit ad2c5a5

Please sign in to comment.