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

netsync: ignore tx invs when we're not current #2270

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kcalvinalvin
Copy link
Collaborator

During ibd sometimes we may ban our sync peers because we're attempting to fetch some txs that may already been confirmed and don't exist in the mempool anymore.

Since we shouldn't be fetching txs anyways when we're not current, this commit changes the handleInvMsg logic to ignore tx invs if the node is not caught up to the tip.

Fixes #1984

@coveralls
Copy link

coveralls commented Oct 29, 2024

Pull Request Test Coverage Report for Build 12080515585

Details

  • 0 of 8 (0.0%) changed or added relevant lines in 1 file are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.001%) to 57.235%

Changes Missing Coverage Covered Lines Changed/Added Lines %
netsync/manager.go 0 8 0.0%
Files with Coverage Reduction New Missed Lines %
peer/peer.go 5 74.19%
Totals Coverage Status
Change from base Build 11941199528: 0.001%
Covered Lines: 29886
Relevant Lines: 52216

💛 - Coveralls

@Roasbeef Roasbeef requested a review from Crypt-iQ October 29, 2024 23:52
During ibd sometimes we may ban our sync peers because we're attempting
to fetch some txs that may already been confirmed and don't exist in the
mempool anymore.

Since we shouldn't be fetching txs anyways when we're not current, this
commit changes the handleInvMsg logic to ignore tx invs if the node is
not caught up to the tip.

Fixes btcsuite#1984
@kcalvinalvin kcalvinalvin force-pushed the 2024-10-29-dont-accept-txs-when-were-not-current branch from 2d25bae to fedf34c Compare November 29, 2024 07:11
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.

Client asks for txs during IBD
2 participants