Page MenuHomePhabricator

[avalanche] bump the misbehavior for oversized AVAPOLL messages
ClosedPublic

Authored by PiRK on Tue, Apr 29, 10:45.

Details

Summary

20 was an arbitrary value. If a node does not format its messages correctly it will get disconnected soon anyway, so don't give it 4 more chances and just disconnect it immediately.

Depends on D18016

Test Plan

ninja all check-all

Event Timeline

PiRK requested review of this revision.Tue, Apr 29, 10:45
Fabien requested changes to this revision.Tue, Apr 29, 13:53
Fabien added a subscriber: Fabien.

This doesn't break any test ? It's certainly time to add one then

This revision now requires changes to proceed.Tue, Apr 29, 13:53
Fabien added inline comments.
test/functional/abc_p2p_avalanche_voting.py
420 ↗(On Diff #53756)

You don't really need to check for all this, the f"too-many-ava-poll: poll message size = {msg_avapoll.MAX_ELEMENT_POLL + 1}" part is enough and will make the test easier to maintain

This revision is now accepted and ready to land.Tue, Apr 29, 16:18

test only one message and complete the comment just below to mention why we don't wait_for_disconnect in this test