Commit 599be72f authored by vicotor's avatar vicotor

update protocol

parent b244b62f
...@@ -67,6 +67,8 @@ message RegisteMessage { ...@@ -67,6 +67,8 @@ message RegisteMessage {
string device_ip = 1; string device_ip = 1;
string miner_pubkey = 2; string miner_pubkey = 2;
string benefit_address = 3; string benefit_address = 3;
int64 timestamp = 4;
bytes device_signature = 5;
} }
message NodeInfoRequest { message NodeInfoRequest {
...@@ -114,10 +116,15 @@ message SubmitTaskResult { ...@@ -114,10 +116,15 @@ message SubmitTaskResult {
message SubmitTaskAck { message SubmitTaskAck {
string task_id = 1; string task_id = 1;
bool can_execute = 2;
int64 boot_up_time = 3;
int64 queue_wait_time = 4;
int64 execute_time = 5;
} }
message SubmitResourceMap { message SubmitResourceMap {
bytes resource_map = 1; // a bitmap of all task id. bytes resource_map = 1; // a bitmap of all task id.
bytes bootup_map = 2; // a bitmap of task id that has been boot up.
} }
message ProofTaskResult { message ProofTaskResult {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment