Skip to content

Conversation

@remagpie
Copy link
Contributor

No description provided.

@remagpie remagpie force-pushed the filter-bootstrap-header branch from 6ce2570 to 0a85a37 Compare November 15, 2019 10:11
}
}
}
_ => cdebug!(SYNC, "Peer {} didn't have the snapshot header {}", from, hash),
Copy link
Contributor

@foriequal0 foriequal0 Nov 15, 2019

Choose a reason for hiding this comment

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

The log message is misleading. The inversion of [header] if header.hash() == hash is "headers is not [header]" (such as [], [h1, ...]), or header.hash() != hash. You should change it to "Peer {} responded with the invalid response. requested hash: {}, response length: {}"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought it is checked in is_valid_response, but it seems it's not.
I'll fix this.

@remagpie remagpie force-pushed the filter-bootstrap-header branch from 0a85a37 to b4553eb Compare November 15, 2019 11:40
@remagpie remagpie merged commit 9776703 into CodeChain-io:feature/snapshot Nov 18, 2019
@foriequal0 foriequal0 mentioned this pull request Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants