ConsensusParams is the parameter space that defines how nodes in the blockchain agree on the state of the ledger
| 230 | |
| 231 | // ConsensusParams is the parameter space that defines how nodes in the blockchain agree on the state of the ledger |
| 232 | type 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 | |
| 248 | func (x *ConsensusParams) Reset() { |
| 249 | *x = ConsensusParams{} |
nothing calls this directly
no outgoing calls
no test coverage detected