niftynei
d6b302b52f
funder: make policy a pointer, most places
2021-07-20 13:28:38 -04:00
niftynei
477832057d
funder: print reason that we don't contribute funds
...
If we don't put funds into a channel, say why in the logs. Should make
it a bit easier to figure out what's going on.
2021-05-23 08:19:50 +09:30
niftynei
f6186d5860
funder: subtract the fee of the utxo from the available amount
...
Adjust our total available funds downward, to account for the fees we'll
be charged to spend them.
2021-05-23 08:19:50 +09:30
niftynei
5e7695f6a0
funder: add count of utxos we're signing to the logs
...
Useful for asserting how many inputs we're contributing
2021-05-23 08:19:50 +09:30
Rusty Russell
ff6b26b70e
plugins/funder: fix up compilation.
...
I merge Christian's plugin notification API change at the same
time, broke plugins/funder.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-05-03 11:42:04 +09:30
niftynei
38b992b805
funder: handle RBF callback
...
Fund an RBF same as you would an open. We dont' do anything fancy with
our inputs -- we dont' have a copy of the last PSBT that was sent.
2021-05-03 11:06:10 +09:30
niftynei
4244fc1a53
funder: funderupdate
command to see/set configs
...
Changelog-Added: Plugins: `funder` plugin now has new command `funderupdate` which will show current funding configuration and allow you to modify them
2021-05-03 11:06:10 +09:30
niftynei
6b37b92f8a
funder: sanitize inputs
...
Error out if we've got the wrong info
2021-05-03 11:06:10 +09:30
niftynei
89a7479312
funder: use listfunds to fetch utxo data
...
Compute available_funds locally, instead of getting it from the
openchannel2 hook payload.
Suggested-By: Rusty Russell @rustyrussell
2021-05-03 11:06:10 +09:30
niftynei
cd5970243a
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
2021-05-03 11:06:10 +09:30