mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
Update Substrate (#808)
* Update to latest Substrate master * upgrade decl_storage declaration * Companion PR to Substrate#4752 Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: thiolliere <gui.thiolliere@gmail.com> Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
This commit is contained in:
@@ -158,27 +158,28 @@ decl_storage! {
|
||||
/// All authorities' keys at the moment.
|
||||
pub Authorities get(authorities): Vec<ValidatorId>;
|
||||
/// The parachains registered at present.
|
||||
pub Code get(parachain_code): map ParaId => Option<Vec<u8>>;
|
||||
pub Code get(parachain_code): map hasher(blake2_256) ParaId => Option<Vec<u8>>;
|
||||
/// The heads of the parachains registered at present.
|
||||
pub Heads get(parachain_head): map ParaId => Option<Vec<u8>>;
|
||||
pub Heads get(parachain_head): map hasher(blake2_256) ParaId => Option<Vec<u8>>;
|
||||
/// The watermark heights of the parachains registered at present.
|
||||
/// For every parachain, this is the block height from which all messages targeting
|
||||
/// that parachain have been processed. Can be `None` only if the parachain doesn't exist.
|
||||
pub Watermarks get(watermark): map ParaId => Option<T::BlockNumber>;
|
||||
pub Watermarks get(watermark): map hasher(blake2_256) ParaId => Option<T::BlockNumber>;
|
||||
|
||||
/// Unrouted ingress. Maps (BlockNumber, to_chain) pairs to [(from_chain, egress_root)].
|
||||
///
|
||||
/// There may be an entry under (i, p) in this map for every i between the parachain's
|
||||
/// watermark and the current block.
|
||||
pub UnroutedIngress: map (T::BlockNumber, ParaId) => Option<Vec<(ParaId, Hash)>>;
|
||||
pub UnroutedIngress:
|
||||
map hasher(blake2_256) (T::BlockNumber, ParaId) => Option<Vec<(ParaId, Hash)>>;
|
||||
|
||||
/// Messages ready to be dispatched onto the relay chain. It is subject to
|
||||
/// `MAX_MESSAGE_COUNT` and `WATERMARK_MESSAGE_SIZE`.
|
||||
pub RelayDispatchQueue: map ParaId => Vec<UpwardMessage>;
|
||||
pub RelayDispatchQueue: map hasher(blake2_256) ParaId => Vec<UpwardMessage>;
|
||||
/// Size of the dispatch queues. Separated from actual data in order to avoid costly
|
||||
/// decoding when checking receipt validity. First item in tuple is the count of messages
|
||||
/// second if the total length (in bytes) of the message payloads.
|
||||
pub RelayDispatchQueueSize: map ParaId => (u32, u32);
|
||||
pub RelayDispatchQueueSize: map hasher(blake2_256) ParaId => (u32, u32);
|
||||
/// The ordered list of ParaIds that have a `RelayDispatchQueue` entry.
|
||||
NeedsDispatch: Vec<ParaId>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user