pub struct TestValidatorGenesis {
    pub rent: Rent,
    pub validator_exit: Arc<RwLock<Exit>>,
    pub start_progress: Arc<RwLock<ValidatorStartProgress>>,
    pub authorized_voter_keypairs: Arc<RwLock<Vec<Arc<Keypair>>>>,
    pub max_ledger_shreds: Option<u64>,
    pub max_genesis_archive_unpacked_size: Option<u64>,
    pub geyser_plugin_config_files: Option<Vec<PathBuf>>,
    pub accounts_db_caching_enabled: bool,
    /* private fields */
}

Fields

rent: Rentvalidator_exit: Arc<RwLock<Exit>>start_progress: Arc<RwLock<ValidatorStartProgress>>authorized_voter_keypairs: Arc<RwLock<Vec<Arc<Keypair>>>>max_ledger_shreds: Option<u64>max_genesis_archive_unpacked_size: Option<u64>geyser_plugin_config_files: Option<Vec<PathBuf>>accounts_db_caching_enabled: bool

Implementations

Adds features to deactivate to a set, eliminating redundancies during initialize_ledger, if member of the set is not a Feature it will be silently ignored

Check if a given TestValidator ledger has already been initialized

Add an account to the test environment

Add an account to the test environment with the account data in the provided filename

Add an account to the test environment with the account data in the provided as a base 64 string

Add a BPF program to the test environment.

program_name will also used to locate the BPF shared object in the current or fixtures directory.

Add a list of programs to the test environment. pub fn add_programs_with_path<’a>(&’a mut self, programs: &ProgramInfo) -> &’a mut Self {

Start a test validator with the address of the mint account that will receive tokens created at genesis.

Start a test validator

Returns a new TestValidator as well as the keypair for the mint account that will receive tokens created at genesis.

This function panics on initialization failure.

Start a test validator with the given SocketAddrSpace

Returns a new TestValidator as well as the keypair for the mint account that will receive tokens created at genesis.

This function panics on initialization failure.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Wrap the input message T in a tonic::Request

Wrap the input message T in a tonic::Request

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more