diff options
author | Troy Giorshev <troygiorshev@gmail.com> | 2020-11-05 05:05:32 -0500 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2021-08-19 18:20:12 +0100 |
commit | 8c96008ab18075abca03bff6b3675643825a21ca (patch) | |
tree | 846de8ab8fccf225350fcd8fe409a95089f0b21a /contrib | |
parent | e35c4a3d80578e8feff1f1ae5db81d3c0992a865 (diff) |
[net] Don't return an optional from TransportDeserializer::GetMessage()
Also, access mapRecvBytesPerMsgCmd with `at()` not `find()`. This
throws an error if COMMAND_OTHER doesn't exist, which should never
happen. `find()` instead just accessed the last element, which could make
debugging more difficult.
Resolves review comments from PR19107:
- https://github.com/bitcoin/bitcoin/pull/19107#discussion_r478718436
- https://github.com/bitcoin/bitcoin/pull/19107#discussion_r478714497
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions