Rusty Russell
1aa2ba0991
common/lease_rates: more things const.
...
And fix up lease_rates_fromhex to be the obvious calling convention.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-07-20 13:28:38 -04:00
Rusty Russell
6da915c96a
lease_rates: lease_rates_eq.
...
We don't actually use the NULL-is-equal in the one caller, so ignore that.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-07-20 13:28:38 -04:00
niftynei
8819278a88
lease rates: helpers for parsing, serializing + equating lease_rates
...
We're gonna need them
2021-07-20 13:28:38 -04:00
niftynei
63e2ce01e7
lease-rates: calculate the fee owed to peer for the funds lease
2021-07-20 13:28:38 -04:00
niftynei
9dd0a2c2e5
channel-lease: validate accepter's sig on lease terms
2021-07-20 13:28:38 -04:00
niftynei
f1b7e5fffe
liquidity-ads: pipe through request to funder, update policy
...
When a request comes through, we forward it over to the funder who
uses the currently set policy to figure out how to handle it.
Includes small update to the policy engine which decides whether or not
to fund a request.
Changelog-Experimental: Plugins: `openchannel2` hook now includes optional fields for a channel lease request
2021-07-20 13:28:38 -04:00
niftynei
9e839b177c
gossipd: turn off lease offers if the rates are empty
...
If received lease rates are empty (all zeroes), turn them off
2021-07-20 13:28:38 -04:00