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

Move logic for TX INVs together #8727

Closed
wants to merge 1 commit into from

Conversation

rebroad
Copy link
Contributor

@rebroad rebroad commented Sep 14, 2016

No description provided.

@@ -5238,8 +5238,13 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,

if (inv.type == MSG_TX) {
inv.type |= nFetchFlags;
pfrom->AddInventoryKnown(inv);
if (fBlocksOnly)
LogPrint("tx", "transaction (%s) inv sent in violation of protocol peer=%d\n", inv.hash.ToString(), pfrom->id);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, you are being notified about network issue - some peer violated protocol (with some tx). Ping pong between tx and net has no reason here...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hint: what other inv.type can you see?

@rebroad rebroad closed this Sep 14, 2016
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants