Fix mining.py

This commit is contained in:
Alexander Block 2019-09-24 10:42:38 +02:00
parent 5a59538630
commit 9ef73e6add

View File

@ -40,9 +40,8 @@ class MiningTest(BitcoinTestFramework):
assert_equal(mining_info['chain'], 'regtest') assert_equal(mining_info['chain'], 'regtest')
assert_equal(mining_info['currentblocksize'], 0) assert_equal(mining_info['currentblocksize'], 0)
assert_equal(mining_info['currentblocktx'], 0) assert_equal(mining_info['currentblocktx'], 0)
assert_equal(mining_info['currentblockweight'], 0)
assert_equal(mining_info['difficulty'], Decimal('4.656542373906925E-10')) assert_equal(mining_info['difficulty'], Decimal('4.656542373906925E-10'))
assert_equal(mining_info['networkhashps'], Decimal('0.003333333333333334')) assert_equal(mining_info['networkhashps'], Decimal('0.01282051282051282'))
assert_equal(mining_info['pooledtx'], 0) assert_equal(mining_info['pooledtx'], 0)
# Mine a block to leave initial block download # Mine a block to leave initial block download