Page MenuHomePhabricator

Fix an off by one index error in makeseeds.py
ClosedPublic

Authored by Fabien on Wed, May 1, 07:23.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCe21337ab96f7: Fix an off by one index error in makeseeds.py
Summary

Each line of the dnsseed.dump contains at least 12 items so we assert the length then access indexes 0 to 11. The assertion is off by one.

Test Plan

Run the makeseeds.py against a dnsseed.dump that is missing the user agent string and check it doesn't crash.

Diff Detail

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