pub trait MutateDescriptorV2<H> {
// Required methods
fn set_relay_parent(&mut self, relay_parent: H);
fn set_para_id(&mut self, para_id: Id);
fn set_pov_hash(&mut self, pov_hash: Hash);
fn set_version(&mut self, version: InternalVersion);
fn set_persisted_validation_data_hash(
&mut self,
persisted_validation_data_hash: Hash,
);
fn set_validation_code_hash(
&mut self,
validation_code_hash: ValidationCodeHash,
);
fn set_erasure_root(&mut self, erasure_root: Hash);
fn set_para_head(&mut self, para_head: Hash);
fn set_core_index(&mut self, core_index: CoreIndex);
fn set_session_index(&mut self, session_index: SessionIndex);
}
Expand description
A trait to allow changing the descriptor field values in tests.
Required Methods§
sourcefn set_relay_parent(&mut self, relay_parent: H)
fn set_relay_parent(&mut self, relay_parent: H)
Set the relay parent of the descriptor.
sourcefn set_para_id(&mut self, para_id: Id)
fn set_para_id(&mut self, para_id: Id)
Set the ParaId
of the descriptor.
sourcefn set_pov_hash(&mut self, pov_hash: Hash)
fn set_pov_hash(&mut self, pov_hash: Hash)
Set the PoV hash of the descriptor.
sourcefn set_version(&mut self, version: InternalVersion)
fn set_version(&mut self, version: InternalVersion)
Set the version field of the descriptor.
sourcefn set_persisted_validation_data_hash(
&mut self,
persisted_validation_data_hash: Hash,
)
fn set_persisted_validation_data_hash( &mut self, persisted_validation_data_hash: Hash, )
Set the PVD of the descriptor.
sourcefn set_validation_code_hash(&mut self, validation_code_hash: ValidationCodeHash)
fn set_validation_code_hash(&mut self, validation_code_hash: ValidationCodeHash)
Set the validation code hash of the descriptor.
sourcefn set_erasure_root(&mut self, erasure_root: Hash)
fn set_erasure_root(&mut self, erasure_root: Hash)
Set the erasure root of the descriptor.
sourcefn set_para_head(&mut self, para_head: Hash)
fn set_para_head(&mut self, para_head: Hash)
Set the para head of the descriptor.
sourcefn set_core_index(&mut self, core_index: CoreIndex)
fn set_core_index(&mut self, core_index: CoreIndex)
Set the core index of the descriptor.
sourcefn set_session_index(&mut self, session_index: SessionIndex)
fn set_session_index(&mut self, session_index: SessionIndex)
Set the session index of the descriptor.