Skip to content

send_all_to_address with retain_reserves creates 0 amount output #539

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

Open
m1sterc001guy opened this issue May 13, 2025 · 1 comment · May be fixed by #540
Open

send_all_to_address with retain_reserves creates 0 amount output #539

m1sterc001guy opened this issue May 13, 2025 · 1 comment · May be fixed by #540

Comments

@m1sterc001guy
Copy link

In Fedimint, we have a test that first closes all channels, then sends all of the funds onchain, then verifies that the node's balance is 0.

When upgrading to ldk-node v0.5.0, this test fails when retain_reserves is set to true. Setting retain_reserves to false makes the test pass. We have not changed our config or our anchor reserve sats at all.

In LDK node's log, I see the following line:

2025-05-13 15:37:08 ERROR [ldk_node::wallet:370] Failed to create temporary transaction: Output below the dust limit: 0

Is this expected behavior? If I had to guess its trying to create a 0 amount output, because we have 0 channels and the "reserve" calculation dictates it needs to create an output, even though in this case it shouldn't. Let me know if I just have something configured incorrectly.

For now we will be setting retain_reserves to false so that our test passes.

@tnull
Copy link
Collaborator

tnull commented May 16, 2025

Ah, good catch, fixed in #540

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 a pull request may close this issue.

2 participants