Commit 260d2ca4 authored by vicotor's avatar vicotor

update

parent 5406a871
...@@ -36,6 +36,33 @@ message TaskContent { ...@@ -36,6 +36,33 @@ message TaskContent {
bytes container_pubkey = 11; bytes container_pubkey = 11;
} }
// CREATE TABLE 'bills' (
// id UUID,
// time TIMESTAMP,
// type symbol CAPACITY 128 CACHE INDEX CAPACITY 8192,
// uid symbol CAPACITY 128 CACHE INDEX CAPACITY 8192,
// fee INT,
// out_len INT,
// workload INT,
// duration INT,
// profit_acc symbol CAPACITY 128 CACHE INDEX CAPACITY 8192,
// worker_acc symbol CAPACITY 128 CACHE INDEX CAPACITY 8192,
// result symbol CAPACITY 128 CACHE INDEX CAPACITY 8192
// ) timestamp (time) PARTITION BY DAY WAL;
message TaskReceipt {
string task_uuid = 1;
uint64 task_finish_time = 2;
uint64 task_id = 3;
string task_uid = 4;
int64 task_fee = 5;
int64 task_out_len = 6;
int64 task_workload = 7;
int64 task_duration = 8;
string task_profit_account = 9;
string task_worker_account = 10;
string task_result = 11; // some message for task result, ex: failed, success, timeout, etc.
}
message TaskResponse { message TaskResponse {
string task_uuid = 1; string task_uuid = 1;
bytes task_result = 2; bytes task_result = 2;
......
This diff is collapsed.
...@@ -79,7 +79,7 @@ message PushTaskMessage { ...@@ -79,7 +79,7 @@ message PushTaskMessage {
// container_signature = sign(hash(task_id+hash(task_param)+hash(task_result))) // container_signature = sign(hash(task_id+hash(task_param)+hash(task_result)))
// miner_signature = sign(hash(task_id+hash(task_param)+hash(task_result))) // miner_signature = sign(hash(task_id+hash(task_param)+hash(task_result)))
// manager_signature = sign(hash((task_id+hash(task_param)+hash(task_result)+(reward_address).Bytes()+(miner_address).Bytes()+container_signature+miner_signature+workload)) // manager_signature = sign(hash(task_id+hash(task_param)+hash(task_result)+(reward_address).Bytes()+(miner_address).Bytes()+container_signature+miner_signature+workload))
message SubmitTaskResult { message SubmitTaskResult {
string task_uuid = 1; string task_uuid = 1;
...@@ -91,8 +91,9 @@ message SubmitTaskResult { ...@@ -91,8 +91,9 @@ message SubmitTaskResult {
message ProofTaskResult { message ProofTaskResult {
string task_uuid = 1; string task_uuid = 1;
bytes manager_signature = 2; // nodemanager 签名 uint64 workload = 2;
bytes container_pubkey = 3; bytes manager_signature = 3; // nodemanager 签名
bytes container_pubkey = 4;
} }
message DispatchTaskRequest { message DispatchTaskRequest {
......
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