-
Notifications
You must be signed in to change notification settings - Fork 379
Conversation
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
Co-authored-by: Alexander Popiak <[email protected]>
@apopiak final approval? |
_, | ||
Blake2_128Concat, | ||
PageCounter, | ||
Vec<(RelayBlockNumber, Vec<u8>)>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Vec<(RelayBlockNumber, Vec<u8>)>, | |
BoundedVec<(RelayBlockNumber, Vec<u8>)>, |
is it possible to already use BoundedVec
here?
Would prevent having to backport those changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will take a while yet :)
_, | ||
Blake2_128Concat, | ||
OverweightIndex, | ||
(RelayBlockNumber, Vec<u8>), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(RelayBlockNumber, Vec<u8>), | |
(RelayBlockNumber, BoundedVec<u8>), |
here too
iter: impl Iterator<Item=(RelayBlockNumber, Vec<u8>)>, | ||
_max_weight: Weight, | ||
) -> Weight { | ||
for _ in iter {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe dumb question, but this gets optimized away by the compiler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so as next()
can have side effects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
high level review looks good
Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>
Part of paritytech/polkadot#2841.
A bit similar to the XCMP Queue pallet, but for DMP messages.