From 867d3449a6a48e1a83aee84fd0fa74a26f794bd8 Mon Sep 17 00:00:00 2001 From: Pasta Date: Wed, 19 Jun 2019 13:05:39 -0500 Subject: [PATCH] adjust networkhashps test for dash block time Signed-off-by: Pasta --- test/functional/blockchain.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/blockchain.py b/test/functional/blockchain.py index 014e7bc26..ff6148c0c 100755 --- a/test/functional/blockchain.py +++ b/test/functional/blockchain.py @@ -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()