Skip to content

Commit

Permalink
pytest: test the blocksonly sanity checkin bcli
Browse files Browse the repository at this point in the history
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
  • Loading branch information
darosior committed Aug 2, 2020
1 parent 4679e11 commit 0049402
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,18 @@ def crash_bitcoincli(r):
bitcoind.generate_block(5)
sync_blockheight(bitcoind, [l1])

# We refuse to start if bitcoind is in `blocksonly`
l1.stop()
bitcoind.stop()
bitcoind.cmd_line += ["-blocksonly"]
bitcoind.start()

l2 = node_factory.get_node(start=False, expect_fail=True)
with pytest.raises(ValueError):
l2.start(stderr=subprocess.PIPE)
assert l2.daemon.is_in_stderr(r".*deactivating transaction relay is not"
" supported.") is not None


def test_bitcoin_ibd(node_factory, bitcoind):
"""Test that we recognize bitcoin in initial download mode"""
Expand Down

0 comments on commit 0049402

Please sign in to comment.