Commit 76bd2751 authored by vicotor's avatar vicotor

add new message

parent 4dfca04c
...@@ -210,19 +210,17 @@ func (*TaskContent) XXX_MessageName() string { ...@@ -210,19 +210,17 @@ func (*TaskContent) XXX_MessageName() string {
} }
// CREATE TABLE 'bills' ( // CREATE TABLE 'bills' (
// // id UUID,
// id UUID, // time TIMESTAMP,
// time TIMESTAMP, // type symbol CAPACITY 128 CACHE INDEX CAPACITY 8192,
// type symbol CAPACITY 128 CACHE INDEX CAPACITY 8192, // uid symbol CAPACITY 128 CACHE INDEX CAPACITY 8192,
// uid symbol CAPACITY 128 CACHE INDEX CAPACITY 8192, // fee INT,
// fee INT, // out_len INT,
// out_len INT, // workload INT,
// workload INT, // duration INT,
// duration INT, // profit_acc symbol CAPACITY 128 CACHE INDEX CAPACITY 8192,
// profit_acc symbol CAPACITY 128 CACHE INDEX CAPACITY 8192, // worker_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
// result symbol CAPACITY 128 CACHE INDEX CAPACITY 8192
//
// ) timestamp (time) PARTITION BY DAY WAL; // ) timestamp (time) PARTITION BY DAY WAL;
type TaskReceipt struct { type TaskReceipt struct {
TaskUuid string `protobuf:"bytes,1,opt,name=task_uuid,json=taskUuid,proto3" json:"task_uuid,omitempty"` TaskUuid string `protobuf:"bytes,1,opt,name=task_uuid,json=taskUuid,proto3" json:"task_uuid,omitempty"`
......
...@@ -89,6 +89,10 @@ message SubmitTaskResult { ...@@ -89,6 +89,10 @@ message SubmitTaskResult {
bool is_successed = 5; // 任务是否成功 bool is_successed = 5; // 任务是否成功
} }
message SubmitResourceMap {
bytes resource_map = 1; // a bitmap of all task id.
}
message ProofTaskResult { message ProofTaskResult {
string task_uuid = 1; string task_uuid = 1;
uint64 workload = 2; uint64 workload = 2;
......
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