Skip to content

Commit 6b9c9af

Browse files
committed
test: remove debug logs with quorum info from helper mine_cycle_quorum
1 parent 0f6cf13 commit 6b9c9af

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

test/functional/test_framework/test_framework.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2309,13 +2309,16 @@ def mine_cycle_quorum(self, is_first=True):
23092309
self.log.info("New quorum: height=%d, quorumHash=%s, quorumIndex=%d, minedBlock=%s" % (quorum_info_0["height"], q_0, quorum_info_0["quorumIndex"], quorum_info_0["minedBlock"]))
23102310
self.log.info("New quorum: height=%d, quorumHash=%s, quorumIndex=%d, minedBlock=%s" % (quorum_info_1["height"], q_1, quorum_info_1["quorumIndex"], quorum_info_1["minedBlock"]))
23112311

2312-
self.log.info("quorum_info_0:"+str(quorum_info_0))
2313-
self.log.info("quorum_info_1:"+str(quorum_info_1))
2314-
2315-
best_block_hash = self.nodes[0].getbestblockhash()
2316-
block_height = self.nodes[0].getblockcount()
2317-
quorum_rotation_info = self.nodes[0].quorum("rotationinfo", best_block_hash)
2318-
self.log.info("h("+str(block_height)+"):"+str(quorum_rotation_info))
2312+
extra_debug_rotation_info = False
2313+
if extra_debug_rotation_info:
2314+
# these logs are useful to debug quorum rotation but it is not usefull for all other cases
2315+
self.log.info("quorum_info_0:"+str(quorum_info_0))
2316+
self.log.info("quorum_info_1:"+str(quorum_info_1))
2317+
2318+
best_block_hash = self.nodes[0].getbestblockhash()
2319+
block_height = self.nodes[0].getblockcount()
2320+
quorum_rotation_info = self.nodes[0].quorum("rotationinfo", best_block_hash)
2321+
self.log.info("h("+str(block_height)+"):"+str(quorum_rotation_info))
23192322

23202323
return (quorum_info_0, quorum_info_1)
23212324

0 commit comments

Comments
 (0)