#[non_exhaustive]pub enum ConfigParamName {
MaxSha256Buffers,
MaxCrossInvokeDepth,
MaxNewContractsPerTx,
MaxBytestringLen,
MaxContractSizeBytes,
MaxSavepointDepth,
MaxAuthTokenDepth,
MaxRv32CodeBytes,
MaxRv32MemoryBytes,
MaxTxGas,
}Expand description
The name a chain execution parameter carries outside its XDR encoding.
The protocol encodes each parameter as a ConfigParam union arm; every
surface that has to say which parameter it means spells the arm’s field
name instead. hog-devnode’s --network-config NAME=VALUE flag keys its
genesis overrides by these names and records them under the same names in
a data directory’s bootstrap metadata. This enum is the one place the
Rust side spells them, so a parameter cannot reach hog-devnode under a
name no parameter has.
Naming a parameter says nothing about which values it admits; that stays hog-devnode’s call, against the ceilings its build was compiled with.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MaxSha256Buffers
MaxCrossInvokeDepth
MaxNewContractsPerTx
MaxBytestringLen
MaxContractSizeBytes
MaxSavepointDepth
MaxAuthTokenDepth
MaxRv32CodeBytes
MaxRv32MemoryBytes
MaxTxGas
Implementations§
Source§impl ConfigParamName
impl ConfigParamName
Sourcepub fn stated_in(self, params: &NetworkConfigParams) -> Option<u64>
pub fn stated_in(self, params: &NetworkConfigParams) -> Option<u64>
The value params states for this parameter, None when unstated.
This is the binding between a name and the field it reads, so a parameter added to one has to be added to the other.
Sourcepub fn known_names() -> String
pub fn known_names() -> String
The names this build knows, comma-separated, for diagnostics.