lightninglabs / taproot-assets

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

tapchannel/[bug]: if asset invoice amount in satoshi exceeds channel capacity, path finding spins indefinitely #1013

Closed guggero closed 1 month ago

guggero commented 3 months ago

When an invoice is attempted to be paid where the asset amount expressed in satoshi is larger than the actual satoshi capacity of the channel, then this check fails and the path finding algorithm thinks it cannot use the channel. That leads to the path finding mechanism to try and split the amount into smaller and smaller pieces, but still failing to send the total because the sum still exceeds the capacity.

4-test_custom_channels_large-Dave-tmp__.log 3-test_custom_channels_large-Charlie-tmp__.log

dstadulis commented 1 month ago

Related to #1060

GeorgeTsagk commented 1 month ago

Closed by https://github.com/lightningnetwork/lnd/pull/8908

(commit: https://github.com/lightningnetwork/lnd/pull/8908/commits/d80bca8c6ffe460dd8ec5ad0b911a0f858b5e74a)