mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
adjust networkhashps test for dash block time
Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
parent
3b3132539f
commit
867d3449a6
@ -114,8 +114,8 @@ class BlockchainTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
def _test_getnetworkhashps(self):
|
def _test_getnetworkhashps(self):
|
||||||
hashes_per_second = self.nodes[0].getnetworkhashps()
|
hashes_per_second = self.nodes[0].getnetworkhashps()
|
||||||
# This should be 2 hashes every 10 minutes or 1/300
|
# This should be 2 hashes every 2.6 minutes (156 seconds) or 1/78
|
||||||
assert abs(hashes_per_second * 300 - 1) < 0.0001
|
assert abs(hashes_per_second * 78 - 1) < 0.0001
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
BlockchainTest().main()
|
BlockchainTest().main()
|
||||||
|
Loading…
Reference in New Issue
Block a user