From ad2c5a53eecc04d8891ad89e44f7d32bd0d86b0c Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Tue, 22 Oct 2024 13:59:43 +0700 Subject: [PATCH] refactor: unify feature_notifications.py after #5522 with bitcoin's codebase --- test/functional/feature_notifications.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/test/functional/feature_notifications.py b/test/functional/feature_notifications.py index d8f09b5e2ebb8..8ef3720ff9bdc 100755 --- a/test/functional/feature_notifications.py +++ b/test/functional/feature_notifications.py @@ -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()