Skip to content

Conversation

@mplsgrant
Copy link
Collaborator

Issue

Sometimes the ln_init routine fails with an error about insufficient funds.

Cause

The ln_init.py process will fail due to insufficient funds if the number of coins it generates is evenly divisible relative to the number of recipients. This leaves the wallet without any money for fees.

Solution

Set aside one bitcoin before dividing up the goods.

This ensures sufficient funds for fees. Otherwise, the ln_init.py process will fail due to
insufficient funds if the number of coins it generates is evenly divisible relative to the number of
recipients.
@mplsgrant mplsgrant requested a review from pinheadmz May 30, 2024 15:37
@pinheadmz
Copy link
Contributor

brilliant thanks!

@pinheadmz pinheadmz merged commit 0939d19 into bitcoin-dev-project:main May 30, 2024
@mplsgrant mplsgrant deleted the 2024-05-reduce-goods-by-one branch May 30, 2024 15:45
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.

2 participants