Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_notifications.py
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | def setup_network(self): | ||||
super().setup_network() | super().setup_network() | ||||
def run_test(self): | def run_test(self): | ||||
self.log.info("test -blocknotify") | self.log.info("test -blocknotify") | ||||
block_count = 10 | block_count = 10 | ||||
blocks = self.generatetoaddress( | blocks = self.generatetoaddress( | ||||
self.nodes[1], | self.nodes[1], | ||||
block_count, | block_count, | ||||
( | |||||
self.nodes[1].getnewaddress() | self.nodes[1].getnewaddress() | ||||
if self.is_wallet_compiled() | if self.is_wallet_compiled() | ||||
else ADDRESS_ECREG_UNSPENDABLE, | else ADDRESS_ECREG_UNSPENDABLE | ||||
), | |||||
) | ) | ||||
# wait at most 10 seconds for expected number of files before reading | # wait at most 10 seconds for expected number of files before reading | ||||
# the content | # the content | ||||
self.wait_until( | self.wait_until( | ||||
lambda: len(os.listdir(self.blocknotify_dir)) == block_count, timeout=10 | lambda: len(os.listdir(self.blocknotify_dir)) == block_count, timeout=10 | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines |