mirror of https://github.com/bitcoin/bitcoin
- Use `SanitizeString` when logging message errors to make sure that the message type is sanitized. - For the `MESSAGESTART` error don't inspect and log header details at all: receiving invalid start bytes makes it likely that the packet isn't even formatted as valid P2P message. Logging the four unexpected start bytes should be enough. - Update `p2p_invalid_messages.py` test to check this. Issue reported by gmaxwell.pull/21872/head
parent
9c05da4a5c
commit
955eee7680
Loading…
Reference in new issue