Skip to content

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

@Impa10r

Description

@Impa10r

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
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions