diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2023-11-29 20:27:38 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2023-11-29 21:02:55 +0100 |
commit | f097f6473095fa04ff52ac7ee33a8dc435144a6f (patch) | |
tree | fd66cda80091a17fadce4d842ac98a1a27ba9abb /src/network | |
parent | 1ab967bb4be90b10aef8a8521a67302d0e7a67d8 (diff) |
Avoid storing zero references and objects
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/protocol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/protocol.cpp b/src/network/protocol.cpp index 8e0de61..02c3dae 100644 --- a/src/network/protocol.cpp +++ b/src/network/protocol.cpp @@ -134,7 +134,7 @@ NetworkProtocol::Connection NetworkProtocol::connect(sockaddr_in6 addr) connections.push_back(conn.get()); vector<Header::Item> header { - Header::Initiation { Digest(array<uint8_t, Digest::size> {}) }, + Header::Initiation { Digest::of(Object(Record())) }, Header::AnnounceSelf { self->ref()->digest() }, Header::Version { defaultVersion }, }; |