pytest: Add an RPC proxy inbetween bitcoind and bitcoin-cli

This is a simple reverse proxy that `bitcoin-cli` can talk to when invoked by
`lightningd`. It allows us to trace `bitcoin-cli` calls, and intercept calls to
mock the replies, better than the current bash-script based method.
This commit is contained in:
Christian Decker
2018-08-21 22:26:02 +02:00
parent 0a5c45e8b1
commit e132dffa0b
5 changed files with 91 additions and 7 deletions

View File

@@ -570,8 +570,6 @@ def test_listconfigs(node_factory, bitcoind):
configs = l1.rpc.listconfigs()
# See utils.py
assert configs['bitcoin-datadir'] == bitcoind.bitcoin_dir
assert configs['lightning-dir'] == l1.daemon.lightning_dir
assert configs['allow-deprecated-apis'] is False
assert configs['network'] == 'regtest'
assert configs['ignore-fee-limits'] is False