Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2307249
commit 6113c52
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
syntax = "proto3"; | ||
|
||
option java_multiple_files = true; | ||
option java_package = "snowblossom.mining.proto"; | ||
option java_outer_classname = "SnowBlossomMiningProto"; | ||
|
||
import "protolib/snowblossom.proto"; | ||
|
||
package snowblossom; | ||
|
||
service MiningPoolService { | ||
rpc GetWork ( GetWorkRequest ) returns (stream WorkUnit) {} | ||
rpc SubmitWork ( WorkSubmitRequest ) returns ( SubmitReply ) {} | ||
} | ||
|
||
message GetWorkRequest { | ||
string client_id = 1; | ||
string pay_to_address = 2; | ||
} | ||
|
||
message WorkUnit { | ||
bytes header_part = 1; | ||
bytes nonce_start = 2; | ||
int64 work_id = 3; | ||
bytes target = 4; | ||
} | ||
|
||
message WorkSubmitRequest { | ||
bytes nonce = 1; | ||
int64 work_id = 2; | ||
int32 snow_field = 3; | ||
repeated SnowPowProof pow_proof = 4; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters