summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-11-29 20:27:38 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2023-11-29 21:02:55 +0100
commitf097f6473095fa04ff52ac7ee33a8dc435144a6f (patch)
treefd66cda80091a17fadce4d842ac98a1a27ba9abb /src/network
parent1ab967bb4be90b10aef8a8521a67302d0e7a67d8 (diff)
Avoid storing zero references and objects
Diffstat (limited to 'src/network')
-rw-r--r--src/network/protocol.cpp2
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 },
};