MCPcopy
hub / github.com/canopy-network/canopy / ConsensusParams

Struct ConsensusParams

fsm/gov.pb.go:232–246  ·  view source on GitHub ↗

ConsensusParams is the parameter space that defines how nodes in the blockchain agree on the state of the ledger

Source from the content-addressed store, hash-verified

230
231// ConsensusParams is the parameter space that defines how nodes in the blockchain agree on the state of the ledger
232type ConsensusParams struct {
233 state protoimpl.MessageState `protogen:"open.v1"`
234 // block_size: is the maximum allowed size of a block (not including the header)
235 BlockSize uint64 `protobuf:"varint,1,opt,name=block_size,json=blockSize,proto3" json:"blockSize"` // @gotags: json:"blockSize"
236 // protocol_version: is the minimum protocol standard that nodes must run to participate in the network
237 ProtocolVersion string `protobuf:"bytes,2,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocolVersion"` // @gotags: json:"protocolVersion"
238 // root_chain_id: the identifier of the root chain (source of the validator set)
239 RootChainId uint64 `protobuf:"varint,3,opt,name=root_chain_id,json=rootChainId,proto3" json:"rootChainID"` // @gotags: json:"rootChainID"
240 // retired: have the validators agreed to stop this chain and mark it as 'forever un-subsidized' in the base chain
241 Retired uint64 `protobuf:"varint,4,opt,name=retired,proto3" json:"retired,omitempty"`
242 // reset_committee: clears committee data for the provided committee id
243 ResetCommittee uint64 `protobuf:"varint,5,opt,name=reset_committee,json=resetCommittee,proto3" json:"resetCommittee"` // @gotags: json:"resetCommittee"
244 unknownFields protoimpl.UnknownFields
245 sizeCache protoimpl.SizeCache
246}
247
248func (x *ConsensusParams) Reset() {
249 *x = ConsensusParams{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected