plugins/bcli: fake minimum fee if we're in regtest mode.

Saves a great deal of confusion for regtest users.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: JSON-RPC: If bitcoind won't give a fee estimate in regtest, use minimum.
This commit is contained in:
Rusty Russell
2021-03-01 13:02:05 +10:30
parent c78e2cc024
commit 4848c0022f
3 changed files with 28 additions and 2 deletions

View File

@@ -2282,7 +2282,7 @@ def test_fundee_forget_funding_tx_unconfirmed(node_factory, bitcoind):
@unittest.skipIf(not DEVELOPER, "needs dev_fail")
def test_no_fee_estimate(node_factory, bitcoind, executor):
l1 = node_factory.get_node(start=False)
l1 = node_factory.get_node(start=False, options={'dev-no-fake-fees': True})
# Fail any fee estimation requests until we allow them further down
l1.daemon.rpcproxy.mock_rpc('estimatesmartfee', {