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

FeeRates returns Urgent: 0, Normal: 0, Slow: 0 #18

Open
Impa10r opened this issue Sep 7, 2024 · 0 comments
Open

FeeRates returns Urgent: 0, Normal: 0, Slow: 0 #18

Impa10r opened this issue Sep 7, 2024 · 0 comments

Comments

@Impa10r
Copy link
Contributor

Impa10r commented Sep 7, 2024

The returned structure no longer matches the API response:

res, err := client.FeeRates(glightning.PerKb)
res:
*glightning.FeeRateEstimate {Style: PerKb (0), Details: *github.com/elementsproject/glightning/glightning.FeeRateDetails {Urgent: 0, Normal: 0, Slow: 0, MinAcceptable: 1012, MaxAcceptable: 4227360, Opening: 110948, MutualClose: 1012, UnilateralClose: 161124, DelayedToUs: 0, HtlcResolution: 0, Penalty: 110948}, OnchainEstimate: *github.com/elementsproject/glightning/glightning.OnchainEstimate {OpeningChannelSatoshis: 19471, MutualCloseSatoshis: 170, UnilateralCloseSatoshis: 1390, HtlcTimeoutSatoshis: 26706, HtlcSuccessSatoshis: 28317}, Warning: ""}
$ lcli feerates perkb
{
   "perkb": {
      "opening": 51008,
      "mutual_close": 1012,
      "unilateral_close": 324356,
      "unilateral_anchor_close": 5000,
      "penalty": 51008,
      "min_acceptable": 1012,
      "max_acceptable": 4586160,
      "floor": 1012,
      "estimates": [
         {
            "blockcount": 2,
            "feerate": 458616,
            "smoothed_feerate": 458616
         },
         {
            "blockcount": 6,
            "feerate": 324356,
            "smoothed_feerate": 324356
         },
         {
            "blockcount": 12,
            "feerate": 51008,
            "smoothed_feerate": 51008
         },
         {
            "blockcount": 100,
            "feerate": 1012,
            "smoothed_feerate": 1012
         }
      ]
   },
   "onchain_fee_estimates": {
      "opening_channel_satoshis": 8951,
      "mutual_close_satoshis": 170,
      "unilateral_close_satoshis": 1390,
      "unilateral_close_nonanchor_satoshis": 48491,
      "htlc_timeout_satoshis": 53762,
      "htlc_success_satoshis": 57005
   }
}
@Impa10r Impa10r changed the title FeeRates returns 0 FeeRates returns Urgent: 0, Normal: 0, Slow: 0 Sep 7, 2024
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

No branches or pull requests

1 participant