bitkarrot / laiseebot

Lightning Laisee are little red envelopes on the Lightning Network. Learn more at laisee.org
https://laisee.org
MIT License
7 stars 5 forks source link

Balance does not update after depositing funds #10

Closed Liongrass closed 2 years ago

Liongrass commented 2 years ago

1) I deposit some sats, either through the lnurl, lightning address or invoice 2) No matter how many times i run /balance, the balance does not update

The balance only updates after I click on the lnbits wallet link.

Surely there would be another way of triggering that update?

Liongrass commented 2 years ago

Interestingly, after a laisee has been redeemed, the laisee is subtracted from the balance immediately, but the most recent top-up is still not applied

bitkarrot commented 2 years ago

This appears to be LNbits Database locking issue on the lnbits: main branch, which was addressed a month ago

See discussion https://t.me/lnbits/28999 Read all the from Nov 4 - 6.

I would suggest setting aside a few hours and installing the Fast API branch with Postgresql on your server. I don't know if they are ready with postgres but you should check as this is super recent and I have not had the chance to install w/postgres

It will take some time to figure out how to do it as its not as straight forward as the lnbits: main branch

Once you have that setup, you can use a test bot to connect to it along with a new instance of supabase. I will send you config.yml details to the test bot, just replace the lnbits part with your fast api install.

bitkarrot commented 2 years ago

Fast.api fix

bitkarrot commented 2 years ago

Need you guys to test this, i will not have time to test if issues. Will deploy a copy to point at new instance

bitkarrot commented 2 years ago

fixing metadata on lnurlp now breaks /send, error is. Unclear why

2021-12-16 17:11:28,937:INFO - in /send: An invalid Peer was used. Make sure to pass the right peer type and that the value is valid (for instance, bots cannot start conversations) (caused by SendMediaRequest)

bitkarrot commented 2 years ago

closing for now, if issues persists, then reopen as new issue

Liongrass commented 2 years ago

Yeah this seems to work now!