github.com/iotexproject/iotex-core@v1.14.1-rc1/consensus/scheme/rolldpos/endorsementpb/endorsementmanager.proto (about) 1 // Copyright (c) 2019 IoTeX 2 // This source code is provided 'as is' and no warranties are given as to title or non-infringement, merchantability 3 // or fitness for purpose and, to the extent permitted by law, all liability for your use of the code is disclaimed. 4 // This source code is governed by Apache License 2.0 that can be found in the LICENSE file. 5 6 // To compile the proto, run: 7 // protoc --go_out=plugins=grpc:. *.proto 8 syntax ="proto3"; 9 package endorsementpb; 10 11 import "proto/types/blockchain.proto"; 12 import "proto/types/endorsement.proto"; 13 14 option go_package = "github.com/iotexproject/iotex-core/consensus/scheme/rolldpos/endorsementpb"; 15 16 17 message endorserEndorsementCollection{ 18 string endorser = 1; 19 repeated uint32 topics = 2; 20 repeated iotextypes.Endorsement endorsements = 3; 21 } 22 23 message blockEndorsementCollection{ 24 iotextypes.Block blk = 1; 25 repeated endorserEndorsementCollection blockMap = 2; 26 } 27 28 message endorsementManager{ 29 repeated string blkHash = 1; 30 repeated blockEndorsementCollection blockEndorsements = 2; 31 iotextypes.Block cachedMintedBlk = 3; 32 }