pub struct RefineContext {
pub anchor: HeaderHash,
pub state_root: StateRootHash,
pub beefy_root: MmrPeakHash,
pub lookup_anchor: HeaderHash,
pub lookup_anchor_slot: Slot,
pub prerequisites: VecSet<WorkPackageHash>,
}Expand description
Various pieces of information helpful to contextualize the Refinement process.
Fields§
§anchor: HeaderHashThe most recent header hash of the chain when building. This must be no more than
RECENT_BLOCKS blocks old when reported.
state_root: StateRootHashMust be state root of block anchor. This is checked on-chain when reported.
beefy_root: MmrPeakHashMust be Beefy root of block anchor. This is checked on-chain when reported.
lookup_anchor: HeaderHashThe hash of a header of a block which is final. Availability will not succeed unless a
super-majority of validators have attested to this.
Preimage lookups will be judged according to this block.
lookup_anchor_slot: SlotThe slot of lookup_anchor on the chain. This is checked in availability and the
report’s package will not be made available without it being correct.
This value must be at least anchor_slot + 14400.
prerequisites: VecSet<WorkPackageHash>Hashes of Work Packages, the reports of which must be reported prior to this one. This is checked on-chain when reported.
Trait Implementations§
Source§impl Clone for RefineContext
impl Clone for RefineContext
Source§fn clone(&self) -> RefineContext
fn clone(&self) -> RefineContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RefineContext
impl Debug for RefineContext
Source§impl Decode for RefineContext
impl Decode for RefineContext
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Source§impl Encode for RefineContext
impl Encode for RefineContext
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Source§impl MaxEncodedLen for RefineContext
impl MaxEncodedLen for RefineContext
Source§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Source§impl PartialEq for RefineContext
impl PartialEq for RefineContext
Source§fn eq(&self, other: &RefineContext) -> bool
fn eq(&self, other: &RefineContext) -> bool
self and other values to be equal, and is used by ==.