Skip to content

Commit

Permalink
Add size_on_disk test
Browse files Browse the repository at this point in the history
Co-authored-by: Simon <simon@bitcartel.com>
  • Loading branch information
leto and bitcartel committed Nov 14, 2018
1 parent 719508e commit 6c1bf4e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qa/rpc-tests/wallet_overwintertx.py
Expand Up @@ -5,7 +5,7 @@

from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal, initialize_chain_clean, \
start_nodes, connect_nodes_bi, wait_and_assert_operationid_status
start_nodes, connect_nodes_bi, wait_and_assert_operationid_status, assert_greater_than
from test_framework.authproxy import JSONRPCException

from decimal import Decimal
Expand Down Expand Up @@ -141,6 +141,10 @@ def run_test (self):
self.nodes[0].generate(1)
self.sync_all()
bci = self.nodes[0].getblockchaininfo()

# size_on_disk should be > 0
assert_greater_than(bci['size_on_disk'], 0)

assert_equal(bci['consensus']['chaintip'], '5ba81b19')
assert_equal(bci['consensus']['nextblock'], '5ba81b19')
assert_equal(bci['upgrades']['5ba81b19']['status'], 'active')
Expand Down

0 comments on commit 6c1bf4e

Please sign in to comment.