mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
refactor: unify feature_notifications.py after #5522 with bitcoin's codebase
This commit is contained in:
parent
aaccc9ea51
commit
ad2c5a53ee
@ -43,14 +43,17 @@ class NotificationsTest(DashTestFramework):
|
|||||||
os.mkdir(self.instantsendnotify_dir)
|
os.mkdir(self.instantsendnotify_dir)
|
||||||
|
|
||||||
# -alertnotify and -blocknotify on node0, walletnotify on node1
|
# -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
|
# -chainlocknotify on node0, -instantsendnotify on node1
|
||||||
self.extra_args[0].append("-chainlocknotify=echo > {}".format(os.path.join(self.chainlocknotify_dir, '%s')))
|
self.extra_args = [[
|
||||||
self.extra_args[1].append("-instantsendnotify=echo > {}".format(os.path.join(self.instantsendnotify_dir, notify_outputname('%w', '%s'))))
|
"-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]
|
self.wallet_names = [self.default_wallet_name, self.wallet]
|
||||||
super().setup_network()
|
super().setup_network()
|
||||||
|
Loading…
Reference in New Issue
Block a user