The error values used in seeder/dns.cpp are defined in RFC1035 under
RCODE. The integer literals currently used as error values can be
replaced with an enum class with accurate names in line with RFC1035.
Details
Details
- Reviewers
deadalnix Fabien jasonbcox - Group Reviewers
Restricted Owners Package (Owns No Changed Paths) Restricted Project - Commits
- rSTAGING767621608503: Replace integer literals in dnshandle() with an enum class
rABC767621608503: Replace integer literals in dnshandle() with an enum class
make check
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
src/seeder/dns.h | ||
---|---|---|
18 โ | (On Diff #14685) | Why is this part of the public API, why does this have smurf naming and why is no_error an error? |
Comment Actions
Renamed variable error -> responseCode, fixed smurf naming, and moved enum to dns.cpp.
src/seeder/dns.cpp | ||
---|---|---|
56 โ | (On Diff #14705) | You can make that an enum class so it is strongly typed and names are scoped. Also DNSResponseCode for types. |