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

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
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11567704995

Details

  • 0 of 8 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.005%) to 57.208%

Changes Missing Coverage Covered Lines Changed/Added Lines %
netsync/manager.go 0 8 0.0%
Totals Coverage Status
Change from base Build 11292783584: -0.005%
Covered Lines: 29850
Relevant Lines: 52178

💛 - Coveralls

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