Skip to content

Disconnect if a peer requests an EB body or EB closure that we don't have #1083

Description

@nfrisby

We only offer EBs bodies/closures once we've acquired them. So if someone asks us for something we don't have, then we didn't offer it via LeiosNotify.

And we only select a CertRB (even as a tentative header) after we've received the EB body and closure, so we also didn't offer it via ChainSync.

Thus: they're requesting something we didn't offer, which is a (mini) protocol violation, and we should disconnect.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

prototypeAbout leios-prototype code

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions