mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-09 16:14:19 +01:00
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
16 lines
493 B
C
16 lines
493 B
C
#ifndef LIGHTNING_COMMON_LEASE_RATES_H
|
|
#define LIGHTNING_COMMON_LEASE_RATES_H
|
|
#include "config.h"
|
|
#include <stdbool.h>
|
|
|
|
struct amount_msat;
|
|
struct amount_sat;
|
|
struct lease_rates;
|
|
|
|
bool lease_rates_empty(struct lease_rates *rates);
|
|
|
|
WARN_UNUSED_RESULT bool lease_rates_set_chan_fee_base_msat(struct lease_rates *rates, struct amount_msat amt);
|
|
|
|
WARN_UNUSED_RESULT bool lease_rates_set_lease_fee_sat(struct lease_rates *rates, struct amount_sat amt);
|
|
#endif /* LIGHTNING_COMMON_LEASE_RATES_H */
|