Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: support the recent way to estimate the fees #57

Merged
merged 1 commit into from
Dec 29, 2023

Conversation

vincenzopalazzo
Copy link
Contributor

@vincenzopalazzo vincenzopalazzo commented Dec 29, 2023

Fixes #26

For more details see commit body

This add a recent update of core lightning for the estimation fees.

The current way to estimate the fee for core lightning is

Polled by lightningd to get the current feerate, all values must be passed in sat/kVB.

The plugin must return feerate_floor (e.g. 1000 if mempool is empty),
and an array of 0 or more feerates. Each element of feerates is an
object with blocks and feerate, in ascending-blocks order, for example:

```
{
	"feerate_floor": <sat per kVB>,
	"feerates": {
		{ "blocks": 2, "feerate": <sat per kVB> },
		{ "blocks": 6, "feerate": <sat per kVB> },
		{ "blocks": 12, "feerate": <sat per kVB> }
		{ "blocks": 100, "feerate": <sat per kVB> }
	}
}
```

Link: #26
Signed-off-by: Vincenzo Palazzo <[email protected]>
@vincenzopalazzo vincenzopalazzo merged commit d666175 into main Dec 29, 2023
4 checks passed
@vincenzopalazzo vincenzopalazzo deleted the macros/fees branch December 29, 2023 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

estimatefees has changed in CLN version v23.05.
1 participant