mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-08-31 17:02:02 +00:00
Fixed rpc_blockchain test case.
This commit is contained in:
parent
c2e4edb7ec
commit
a51579a028
@ -133,7 +133,7 @@ class BlockchainTest(BitcoinTestFramework):
|
||||
node = self.nodes[0]
|
||||
res = node.gettxoutsetinfo()
|
||||
|
||||
assert_equal(res['total_amount'], Decimal('8725.00000000'))
|
||||
assert_equal(res['total_amount'], Decimal('87250.00000000'))
|
||||
assert_equal(res['transactions'], 200)
|
||||
assert_equal(res['height'], 200)
|
||||
assert_equal(res['txouts'], 200)
|
||||
@ -201,7 +201,8 @@ class BlockchainTest(BitcoinTestFramework):
|
||||
difficulty = self.nodes[0].getdifficulty()
|
||||
# 1 hash in 2 should be valid, so difficulty should be 1/2**31
|
||||
# binary => decimal => binary math is why we do this check
|
||||
assert abs(difficulty * 2**31 - 1) < 0.0001
|
||||
# assert abs(difficulty * 2**31 - 1) < 0.0001
|
||||
assert abs(difficulty) < 0.0005 # Kevacoin change
|
||||
|
||||
def _test_getnetworkhashps(self):
|
||||
hashes_per_second = self.nodes[0].getnetworkhashps()
|
||||
|
Loading…
x
Reference in New Issue
Block a user