Page MenuHomePhabricator

Enforce protocol message size against INV message size

Authored by jasonbcox on Tue, Nov 27, 00:55.



Need to enforce this check at compile time.

Test Plan


Diff Detail

rABC Bitcoin ABC
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jasonbcox created this revision.Tue, Nov 27, 00:55
Herald added a reviewer: Restricted Project. · View Herald TranscriptTue, Nov 27, 00:55
jasonbcox changed the visibility from "Public (No Login Required)" to "Restricted Project (Project)".Tue, Nov 27, 00:56
deadalnix requested changes to this revision.Tue, Nov 27, 00:59
deadalnix added inline comments.
55 ↗(On Diff #6122)

sizeof instead of 32 ?

This revision now requires changes to proceed.Tue, Nov 27, 00:59
jasonbcox updated this revision to Diff 6123.Tue, Nov 27, 01:23

Use sizeof instead of magic value

deadalnix accepted this revision.Tue, Nov 27, 12:48
This revision is now accepted and ready to land.Tue, Nov 27, 12:48
deadalnix changed the visibility from "Restricted Project (Project)" to "Public (No Login Required)".Tue, Nov 27, 12:49
This revision was automatically updated to reflect the committed changes.