It appears that a peer id is not an inventory type.
Details
- Reviewers
bytesofman - Group Reviewers
Restricted Project - Commits
- rABC47810b33d3c8: [avalanche] Fix a bug in the avalanche logs
ninja all check
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- fix_peer_log_type
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 25202 Build 49992: Build Diff lint-circular-dependencies · build-without-wallet · build-clang · build-clang-tidy · build-diff · build-debug Build 49991: arc lint + arc unit
Event Timeline
src/net_processing.cpp | ||
---|---|---|
5094 | looks like the logic applied before this diff is that inv.type could only be unknown if we get to this default block of the switch statement, the introduced bug was in supplying inv.type as the variable to be logged instead of pfrom.GetId() (guessing a bit, I don't actually know what inv.type could be). If inv.type really is always unknown, then we could just not long the var at all, keep the hardcoded poll inv type unknown If inv.type can be many things but always unrecognized by the switch statement if we get here, could still clarify this, say something like `"unrecognized poll inv type '%d' from peer=%d\n" as suggested |
src/net_processing.cpp | ||
---|---|---|
5094 | The possible values for inv.type is defined at the protocol level, and the node is fully compatible with the eCash P2P protocol. |