refactor: Switch serialize to uint8_t (1/n)

This commit is contained in:
MarcoFalke
2021-05-31 14:57:32 +02:00
parent 8c6df2b4ca
commit ffff0d0442
8 changed files with 45 additions and 49 deletions

View File

@@ -3048,7 +3048,7 @@ void CaptureMessage(const CAddress& addr, const std::string& msg_type, const Spa
ser_writedata64(f, now.count());
f.write(msg_type.data(), msg_type.length());
for (auto i = msg_type.length(); i < CMessageHeader::COMMAND_SIZE; ++i) {
f << '\0';
f << uint8_t{'\0'};
}
uint32_t size = data.size();
ser_writedata32(f, size);