Skip to content

Commit

Permalink
partial Merge bitcoin#18878: test: Add test for conflicted wallet tx …
Browse files Browse the repository at this point in the history
…notifications

Backport notice:
we don't have bumpfee feature, so, only some part of code is backported

f963a68 test: Add test for conflicted wallet tx notifications (Russell Yanofsky)

Pull request description:

  Add test coverage for conflicted wallet transaction notifications so we can improve current behavior and avoid future regressions

  bitcoin#9240 - accidental break
  bitcoin#9479 - bug report
  bitcoin#9371 - fix
  bitcoin#16624 - accidental break
  bitcoin#18325 - bug report
  bitcoin#18600 - potential fix

ACKs for top commit:
  laanwj:
    ACK f963a68
  jonatack:
    re-ACK f963a68
  MarcoFalke:
    ACK f963a68

Tree-SHA512: d3a7952a2d3dc2ff0800ef857575ea4ef9759c0917d58a7fc91e2db0ca3cc3baf0dd0cf9af61683f691e5fefb11afe8120bb5810c7037ed9ecedee385dd4aa07

fixup dashify of feature_notifications
  • Loading branch information
laanwj authored and knst committed May 27, 2024
1 parent db5bd34 commit fab41fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/functional/feature_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import os

from test_framework.address import ADDRESS_BCRT1_UNSPENDABLE

from test_framework.test_framework import DashTestFramework
from test_framework.util import (
assert_equal,
Expand Down Expand Up @@ -95,6 +96,9 @@ def run_test(self):
# directory content should equal the generated transaction hashes
txids_rpc = list(map(lambda t: notify_outputname(self.wallet, t['txid']), self.nodes[1].listtransactions("*", block_count)))
assert_equal(sorted(txids_rpc), sorted(os.listdir(self.walletnotify_dir)))
for tx_file in os.listdir(self.walletnotify_dir):
os.remove(os.path.join(self.walletnotify_dir, tx_file))


self.log.info("test -chainlocknotify")

Expand Down Expand Up @@ -141,5 +145,6 @@ def run_test(self):

# TODO: add test for `-alertnotify` large fork notifications


if __name__ == '__main__':
NotificationsTest().main()

0 comments on commit fab41fd

Please sign in to comment.