Struct solana_sdk::genesis_config::GenesisConfig [−][src]
Fields
creation_time: UnixTimestamp
when the network (bootstrap validator) was started relative to the UNIX Epoch
accounts: BTreeMap<Pubkey, Account>
initial accounts
native_instruction_processors: Vec<(String, Pubkey)>
built-in programs
rewards_pools: BTreeMap<Pubkey, Account>
accounts for network rewards, these do not count towards capitalization
ticks_per_slot: u64
unused: u64
poh_config: PohConfig
network speed configuration
__backwards_compat_with_v0_23: u64
this field exists only to ensure that the binary layout of GenesisConfig remains compatible with the Solana v0.23 release line
fee_rate_governor: FeeRateGovernor
transaction fee config
rent: Rent
rent config
inflation: Inflation
inflation config
epoch_schedule: EpochSchedule
how slots map to epochs
cluster_type: ClusterType
network runlevel
evm_root_hash: H256
Initial data for evm part
evm_chain_id: u64
EVM chain id
Implementations
impl GenesisConfig
[src]
pub fn new(
accounts: &[(Pubkey, Account)],
native_instruction_processors: &[(String, Pubkey)]
) -> Self
[src]
accounts: &[(Pubkey, Account)],
native_instruction_processors: &[(String, Pubkey)]
) -> Self
pub fn hash(&self) -> Hash
[src]
pub fn disable_cap_altering_features_for_preciseness(&mut self)
[src]
pub fn load(ledger_path: &Path) -> Result<Self, Error>
[src]
pub fn write(&self, ledger_path: &Path) -> Result<(), Error>
[src]
pub fn generate_evm_state(
&self,
ledger_path: &Path,
evm_state_json: Option<&Path>
) -> Result<(), Error>
[src]
&self,
ledger_path: &Path,
evm_state_json: Option<&Path>
) -> Result<(), Error>
pub fn set_evm_root_hash(&mut self, root_hash: H256)
[src]
pub fn add_account(&mut self, pubkey: Pubkey, account: Account)
[src]
pub fn add_native_instruction_processor(
&mut self,
name: String,
program_id: Pubkey
)
[src]
&mut self,
name: String,
program_id: Pubkey
)
pub fn hashes_per_tick(&self) -> Option<u64>
[src]
pub fn ticks_per_slot(&self) -> u64
[src]
pub fn ns_per_slot(&self) -> u128
[src]
pub fn slots_per_year(&self) -> f64
[src]
Trait Implementations
impl Clone for GenesisConfig
[src]
fn clone(&self) -> GenesisConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for GenesisConfig
[src]
impl Default for GenesisConfig
[src]
impl<'de> Deserialize<'de> for GenesisConfig
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for GenesisConfig
[src]
impl Serialize for GenesisConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for GenesisConfig
impl Send for GenesisConfig
impl Sync for GenesisConfig
impl Unpin for GenesisConfig
impl UnwindSafe for GenesisConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,