Skip to content

Commit

Permalink
minor change on typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Junlin Gao committed Nov 22, 2019
1 parent c270dfa commit 0602962
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions protos/guard/guard.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,10 @@ service GuardService {

message Log {
google.protobuf.Timestamp change_time = 1;
string change_originator = 2;
string originator_pid = 2;
string change = 3;
}

//below rpc is needed for host by concept, and it work as BTFS
// service HostService{
// rpc challenge(ProofOfReplicateChallenge) returns (ProofOfReplicateChallenge){} //used for receieve challenge question and return the answer, TBD seems can be removed as the BTFS has embed function , no need for service
// rpc cancelContract(Contract) returns (Result){} //removed for phase 2
// }

//the relationship of the objects from Guard's view
// FileStoreMeta (1:n) Contract (1:n) payout
//contract is the signed document between the renter and host for one shard's storage
Expand Down Expand Up @@ -142,7 +136,7 @@ message FileStoreStatus {
(gogoproto.stdtime) = true
]; //guard received time, which used to calculate the timeout for cancel
repeated Log change_log = 6;
google.protobuf.Timestamp curent_time = 7 [
google.protobuf.Timestamp current_time = 7 [
(gogoproto.nullable) = false,
(gogoproto.stdtime) = true
]; //the time for generate the status
Expand All @@ -153,7 +147,7 @@ message ChallengeQuestion {
string shard_hash = 1; //shard hash
string host_pid = 2; //host's peerId
int32 chunk_index = 3; //the chunk's index for calculation
string random_nonce = 4; //the challenge questions's random nonce
string nonce = 4; //the challenge questions's random nonce
string expect_answer = 5; //the challenge expected answer
}

Expand Down

0 comments on commit 0602962

Please sign in to comment.