We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ced975 commit cee09f0Copy full SHA for cee09f0
src/protocols/protocol_explore.cpp
@@ -76,14 +76,15 @@ bool protocol_explore::try_dispatch_object(const request& request) NOEXCEPT
76
77
const auto& query = archive();
78
const auto wit = params["witness"] != "false";
79
+ constexpr auto header_size = chain::header::serialized_size();
80
81
if (is_json)
82
{
83
if (hd)
84
85
if (const auto ptr = query.get_header(query.to_header(hash)))
86
- send_json(request, value_from(ptr), ptr->serialized_size());
87
+ send_json(request, value_from(ptr), header_size);
88
return true;
89
}
90
0 commit comments