github.com/cheng762/platon-go@v1.8.17-0.20190529111256-7deff2d7be26/core/ppos_storage/ppos_storage.proto (about) 1 syntax = "proto3"; 2 package ppos_storage; 3 4 5 message CandidateInfo { 6 7 string Deposit = 1; 8 string BlockNumber = 2; 9 uint32 TxIndex = 3; 10 string CandidateId = 4; 11 string Host = 5; 12 string Port = 6; 13 string Owner = 7; 14 // string From = 8; 15 string Extra = 8; 16 uint32 Fee = 9; 17 string TxHash = 10; 18 string TOwner = 11; 19 } 20 21 message Refund { 22 string Deposit = 1; 23 string BlockNumber = 2; 24 string Owner = 3; 25 } 26 27 message RefundArr { 28 repeated Refund Defeats = 1; 29 } 30 31 message CandidateTemp { 32 // three round witness 33 repeated CandidateInfo pres = 1; 34 repeated CandidateInfo currs = 2; 35 repeated CandidateInfo nexts = 3; 36 37 // can pool 38 repeated CandidateInfo imms = 4; 39 repeated CandidateInfo res = 5; 40 41 // refunds 42 map<string, RefundArr> refunds = 6; 43 } 44 45 //message TicketInfo { 46 // bytes Owner = 1; 47 // string Deposit =2; 48 // bytes CandidateId = 3; 49 // string BlockNumber = 4; 50 // uint32 Remaining = 5; 51 //} 52 53 //message TxHashArr { 54 // repeated string TxHashs = 1; 55 //} 56 57 58 message Field { 59 string TxHash = 1; 60 uint32 Remaining = 2; 61 string Price = 3; 62 } 63 64 message TicketDependency { 65 // uint64 Age = 1; 66 uint32 Num = 2; 67 // repeated bytes Tids = 3; 68 repeated Field Tinfo = 3; 69 } 70 71 message TicketTemp { 72 int32 Sq = 1; 73 // map<string, TicketInfo> Infos = 2; 74 // map<string, TxHashArr> Ets = 3; 75 map<string, TicketDependency> Dependencys = 4; 76 } 77 78 79 message PB_PPosTemp { 80 CandidateTemp CanTmp = 1; 81 TicketTemp TickTmp = 2; 82 string BlockNumber = 3; 83 string BlockHash = 4; 84 } 85 86 // sort information 87 88 message SortTemp { 89 90 // can dependency 91 repeated CandidateInfo cans = 1; 92 repeated string reIds = 2; 93 repeated RefundArr refunds = 3; 94 95 // tick dependency 96 int32 sq = 4; 97 repeated string nodeIds = 5; 98 repeated TicketDependency deps = 6; 99 100 101 } 102 103 104