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

Chain height out of sync due to BitcoinJ/Bitcoind ping timeout #6351

Closed
ghost opened this issue Sep 5, 2022 · 2 comments
Closed

Chain height out of sync due to BitcoinJ/Bitcoind ping timeout #6351

ghost opened this issue Sep 5, 2022 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 5, 2022

Description

User's offer was not able to be taken because their chain height was out of sync.
However, user was unaware the problem existed.

Version

All current versions.

Steps to reproduce

Unknown

Expected behaviour

User should be made aware of the issue.

Actual behaviour

No indication shown, or very little indication other than chain height.
You do get notified if actively trying to make or take an offer (#4764), but if a peer fails to take your offer it is only logged and the user is unaware of it.

WARN  b.c.b.s.WalletsSetup: Our chain height: 752462 is out of sync with peer nodes chain height: 752540 
INFO  b.c.o.OpenOfferManager: We got a handleOfferAvailabilityRequest but our chain is not synced. 

Additional info

Logs revealed a repetitive problem of bitcoinj reporting "Too many pending pings, disconnecting" (once every 2 minutes).
The bitcoind node was connected via IP on local area network.
It is unclear if bitcoind has some anti-spam mechanism for ignoring too frequent pings. But this is largely a connection issue between BitcoinJ and bitcoind of which we are out of the loop.

Suggested solution is to alert the user via the status indicator in the footer bar if the chain height falls out of sync.

I'll work on this.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions
Copy link

github-actions bot commented Sep 1, 2023

This issue has been automatically closed because of inactivity. Feel free to reopen it if you think it is still relevant.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants