adjust networkhashps test for dash block time

Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
Pasta 2019-06-19 13:05:39 -05:00
parent 3b3132539f
commit 867d3449a6
No known key found for this signature in database
GPG Key ID: D362C9F7142766AE

View File

@ -114,8 +114,8 @@ class BlockchainTest(BitcoinTestFramework):
def _test_getnetworkhashps(self):
hashes_per_second = self.nodes[0].getnetworkhashps()
# This should be 2 hashes every 10 minutes or 1/300
assert abs(hashes_per_second * 300 - 1) < 0.0001
# This should be 2 hashes every 2.6 minutes (156 seconds) or 1/78
assert abs(hashes_per_second * 78 - 1) < 0.0001
if __name__ == '__main__':
BlockchainTest().main()