Skip to content

Commit cee09f0

Browse files
committed
Use static reference to header size.
1 parent 0ced975 commit cee09f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/protocols/protocol_explore.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,15 @@ bool protocol_explore::try_dispatch_object(const request& request) NOEXCEPT
7676

7777
const auto& query = archive();
7878
const auto wit = params["witness"] != "false";
79+
constexpr auto header_size = chain::header::serialized_size();
7980

8081
if (is_json)
8182
{
8283
if (hd)
8384
{
8485
if (const auto ptr = query.get_header(query.to_header(hash)))
8586
{
86-
send_json(request, value_from(ptr), ptr->serialized_size());
87+
send_json(request, value_from(ptr), header_size);
8788
return true;
8889
}
8990
}

0 commit comments

Comments
 (0)