Skip to content

Commit 867d344

Browse files
adjust networkhashps test for dash block time
Signed-off-by: Pasta <pasta@dashboost.org>
1 parent 3b31325 commit 867d344

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/blockchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ def _test_getdifficulty(self):
114114

115115
def _test_getnetworkhashps(self):
116116
hashes_per_second = self.nodes[0].getnetworkhashps()
117-
# This should be 2 hashes every 10 minutes or 1/300
118-
assert abs(hashes_per_second * 300 - 1) < 0.0001
117+
# This should be 2 hashes every 2.6 minutes (156 seconds) or 1/78
118+
assert abs(hashes_per_second * 78 - 1) < 0.0001
119119

120120
if __name__ == '__main__':
121121
BlockchainTest().main()

0 commit comments

Comments
 (0)