funder: add a plugin, funder. policies for dual-funding

Behold! An immaculately concepted plugin for configuring your node to do
amazing things*

*fund channel open requests

Changelog-Added:  Plugins: Add `funder` plugin, which allows you to setup a policy for funding v2 channel open requests. Requres --experimental-dual-fund option
This commit is contained in:
niftynei
2021-04-22 17:51:22 -05:00
committed by Rusty Russell
parent 16c92b7da3
commit cd5970243a
6 changed files with 943 additions and 2 deletions

View File

@@ -203,8 +203,10 @@ def test_v2_open_sigs_restart_while_dead(node_factory, bitcoind):
@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd doesnt yet support PSBT features we need')
def test_v2_rbf(node_factory, bitcoind, chainparams):
l1, l2 = node_factory.get_nodes(2,
opts=[{'experimental-dual-fund': None},
{'experimental-dual-fund': None}])
opts=[{'experimental-dual-fund': None,
'wumbo': None},
{'experimental-dual-fund': None,
'wumbo': None}])
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
amount = 2**24