Fix json serialization of pulse sigs (#1234)

This was producing invalid json:

    "signatures":[,"voter_index":0,"signature":"...",,"voter_index":1,"signature":"...",,

This change corrects it to:

    "signatures":[{"voter_index":0,"signature":"..."},{"voter_index":1,"signature":"..."},{
This commit is contained in:
Jason Rhinelander 2020-08-19 02:31:41 -03:00 committed by GitHub
parent 130e876021
commit 1ba69c9a77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ namespace service_nodes
std::memset(padding, 0, sizeof(padding));
}
BEGIN_SERIALIZE()
BEGIN_SERIALIZE_OBJECT()
FIELD(voter_index)
FIELD(signature)
END_SERIALIZE()