Skip to content

Commit 6ab3f7c

Browse files
committed
test: reduce spamming quorum list to logs while waiting
1 parent 9d9975f commit 6ab3f7c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,16 +1816,15 @@ def check_dkg_comitments():
18161816

18171817
def wait_for_quorum_list(self, quorum_hash, nodes, timeout=15, llmq_type_name="llmq_test"):
18181818
def wait_func():
1819-
quorums = self.nodes[0].quorum('list')
1820-
self.log.info(f"quorums: {quorums}")
1821-
return quorum_hash in quorums[llmq_type_name]
1819+
return quorum_hash in self.nodes[0].quorum('list')[llmq_type_name]
1820+
self.log.info(f"quorums: {self.nodes[0].quorum('list')}")
18221821
self.wait_until(wait_func, timeout=timeout, sleep=0.05)
18231822

18241823
def wait_for_quorums_list(self, quorum_hash_0, quorum_hash_1, nodes, llmq_type_name="llmq_test", timeout=15):
18251824
def wait_func():
1826-
quorums = self.nodes[0].quorum("list")
1827-
self.log.info(f"h({self.nodes[0].getblockcount()}) quorums: {quorums}")
1828-
return quorum_hash_0 in quorums[llmq_type_name] and quorum_hash_1 in quorums[llmq_type_name]
1825+
quorums = self.nodes[0].quorum("list")[llmq_type_name]
1826+
return quorum_hash_0 in quorums and quorum_hash_1 in quorums
1827+
self.log.info(f"h({self.nodes[0].getblockcount()}) quorums: {self.nodes[0].quorum('list')}")
18291828
self.wait_until(wait_func, timeout=timeout, sleep=0.05)
18301829

18311830
def move_blocks(self, nodes, num_blocks):

0 commit comments

Comments
 (0)