Skip to content

Commit 32a4a20

Browse files
rep proto
1 parent d32573b commit 32a4a20

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

nebula/core/pb/nebula.proto

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,13 @@ message LinkMessage {
115115
}
116116

117117
message ReputationMessage {
118-
enum Action {
119-
SHARE_REPUTATION = 0; // Message to tell reputation state to a node
120-
START_TRIAL = 1; // Message to start a trial
121-
SUBMIT_VERDICT = 2; // Message to send back the verdict for a trial
122-
}
123-
Action action = 1;
124-
string reputation = 2;
125-
string defendant = 3;
126-
string verdict = 4;
118+
enum Action {
119+
SHARE = 0;
120+
}
121+
string node_id = 1; //Id of the node to which the reputation is sent
122+
float score = 2; //Score reputation
123+
int32 round = 3; //Round to send the reputation
124+
Action action = 4; // Action type (default: SHARE)
127125
}
128126

129127
// Response transmits the outcome of a requested operation, including any errors.

0 commit comments

Comments
 (0)