Skip to content

[BUG] - Payments taking a long time to clear, or don't clearΒ #342

@nQuiz

Description

@nQuiz

Hi guys - thanks for making your tool available to the Nostr community!

We'd like to report an issue we have observed with the 'paid relay' feature, which we have deployed to relay.nquiz.io

When we do a fresh deploy, everything works as it should.

But, after some time of usage, generating multiple invoices, of which some are paid, some not, some expired, some not - the relay stops processing payments. So, even though the user has paid the lightning invoice, the relay can't figure it out and the user doesn't get admitted (/invoices page never says "payment successful", QR code remains on screen)

After we notice that this is happening, we perform the following hack:

  1. Launch the docker nostream-db container bash: docker exec -it nostream-db bash
  2. Log in to the DB: psql -U nostr_ts_relay
  3. Remove all of the invoices: delete from invoices;

After these steps, the relay begins to admit users again.

Is this something you are aware of? If so, is there a fix planned, or are there any workarounds we can use?

System:

  • OS: [Ubuntu]
  • Platform: [docker]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions