Page MenuHomePhabricator

[avalanche] Fix an always true assertion in abc_p2p_getavaaddr
ClosedPublic

Authored by Fabien on Apr 1 2022, 08:58.

Details

Summary

There is a loop intended to check that we get one more message after each iteration, but it's always true after the first one due to poor condition check.

Test Plan
./test/functional/test_runner.py abc_p2p_getavaaddr

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested review of this revision.Apr 1 2022, 08:58
PiRK added a subscriber: PiRK.
PiRK added inline comments.
test/functional/abc_p2p_getavaaddr.py
289 ↗(On Diff #33037)

is the triple a intentional in the variable name?

This revision is now accepted and ready to land.Apr 1 2022, 12:49
test/functional/abc_p2p_getavaaddr.py
289 ↗(On Diff #33037)

No it's not, good catch !