Skip to content

Conversation

@starius
Copy link
Contributor

@starius starius commented Aug 31, 2025

SatPerByte is deprecated.

Pull Request Checklist

  • PR is opened against correct version branch.
  • Version compatibility matrix in the README and minimal required version
    in lnd_services.go are updated.
  • Update macaroon_recipes.go if your PR adds a new method that is called
    differently than the RPC method it invokes.

@lightninglabs-deploy
Copy link

@bhandras: review reminder

SendCoins(ctx context.Context, addr btcutil.Address,
amount btcutil.Amount, sendAll bool, confTarget int32,
satsPerByte int64, label string) (string, error)
satsPerVByte chainfee.SatPerVByte, label string) (string, error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would lead to breaks in other implementations of this interface, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I think this if ok, given satsPerByte is deprecated and can be removed in LND. So users and other implementations of this method are force to update their code.

@hieblmi hieblmi requested review from Copilot and hieblmi November 8, 2025 18:17
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the SendCoins method to use proper fee rate types by changing the parameter type from int64 to chainfee.SatPerVByte and updating the RPC request field from SatPerByte to SatPerVbyte. This aligns with the LND API's transition to virtual byte-based fee rates.

Key changes:

  • Updated parameter type from int64 satsPerByte to chainfee.SatPerVByte satsPerVByte in both interface and implementation
  • Changed RPC request field from SatPerByte to SatPerVbyte with proper type conversion to uint64
  • Updated documentation comments to reflect the new parameter name

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@starius starius merged commit d112373 into lightninglabs:master Nov 9, 2025
7 checks passed
@starius starius deleted the send-coins branch November 9, 2025 01:23
@starius
Copy link
Contributor Author

starius commented Nov 9, 2025

Tagged it as v0.19.3-1

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.

4 participants