lightninglabs / taproot-assets

A layer 1 daemon, for the Taproot Assets Protocol specification, written in Go (golang)
MIT License
439 stars 106 forks source link

server+tapchannel: modify PaymentBandwidth to return link bandwidth #962

Closed ffranr closed 1 week ago

ffranr commented 1 week ago

Dependant on https://github.com/lightningnetwork/lnd/pull/8852 Requires LND version bump once the above PR is merged. Will remove from draft when ready for merge.

This PR is ready for review now.

In this PR, the traffic shaper's PaymentBandwidth method is modified to return the link bandwidth if the tap channel commitment blob or HTLC record is absent.

This modification ensures the traffic shaper returns the correct bandwidth for tap channels used as standard BTC lightning channels, ignoring any committed taproot assets.

guggero commented 1 week ago

Pushed up some fixes, verified through https://github.com/lightninglabs/lightning-terminal/pull/775.