From 7e4690bbe60aed0f7281ce911f9d4e66afb69d66 Mon Sep 17 00:00:00 2001 From: asanka-indrajith Date: Wed, 9 Oct 2019 06:54:29 -0400 Subject: [PATCH] Addditional comments expressing the need of compulsary fields. --- src/p2p/p2p.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/p2p/p2p.h b/src/p2p/p2p.h index e3719a03..feece01e 100644 --- a/src/p2p/p2p.h +++ b/src/p2p/p2p.h @@ -21,10 +21,10 @@ Need to improve and add additional functionality once started to use. void set_message(Message &message, int timestamp, string version, string publicKey, string signature, p2p::Message::Messagetype type, string content); // Serialize the message and store it in the given string. All message -// fields must be set. +// fields must be set. Consensus rounds need all fileds. bool message_serialize_to_string(Message& message, string* output); -// Parsing the message from binary string to given message. +// Parsing the message from binary message string to given message. bool message_parse_from_string(Message& message, const string& dataString); //Set proposal inputs from given string vector. @@ -36,11 +36,11 @@ void set_proposal_outputs(Proposal& proposal, vector outputs); //Set proposal connections from given string vector. void set_proposal_connections(Proposal& proposal, vector connections); -//Set proposal state patches from given map. Both keys and value of map should be strings. +//Set proposal state patches from given map of patches. void set_state_patch(State& state, map patches); // Serialize the proposal message and store it in the given string. All propsal message -// fields must be set. +// fields must be set. Consensus rounds need all fileds. bool proposal_serialize_to_string(Proposal& proposal, string* output); // Parsing the proposal message from binary string to given message.