Skip to content
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

a lot of onchain_payment have pending: true despite being confirmed #11

Closed
nicolasburtey opened this issue Feb 12, 2021 · 3 comments
Closed
Labels
bug Something isn't working lnd onchain

Comments

@nicolasburtey
Copy link
Member

db.getCollection('medici_transactions').find({"type": "onchain_payment", "pending": true}).count() --> 356
db.getCollection('medici_transactions').find({"type": "onchain_payment"}).count() --> 914

looking at the log, it seems this is because the trigger Pod didn't receive the notification from lnd.

similar to the cleanup function for Lightning when a payment has been sent (updateUsersPendingPayment), another cron job should run daily to make sure sent on-chain transaction with 6 blocks confirmation are marked pending = false.

@nicolasburtey nicolasburtey transferred this issue from another repository Mar 16, 2021
@nicolasburtey nicolasburtey added bug Something isn't working onchain labels Mar 18, 2021
@dolcalmi
Copy link
Contributor

is still happening?

@nicolasburtey
Copy link
Member Author

I believe so yes. this is related to the fact we don't seem to always receive events from lnd when a transaction is being confirmed.

but I think the move to bitcoind would solve this issue: #317 @jotapea

@jotapea
Copy link
Contributor

jotapea commented Jul 19, 2021

Yes these events will be emitted by enabling ZeroMQ in bitcoind. #346 + #317 should solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lnd onchain
Projects
None yet
Development

No branches or pull requests

3 participants