-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add state to message lanes #2214
Conversation
data | ||
}, | ||
} | ||
self.cached_data.clone() |
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.
Nit: I would rename the function to just data()
, considering that we're not initializing it here anymore.
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.
Also I don't think it needs to receive &mut self
anymore. &self
should be enough.
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.
True, thank you!
* Benchmarks script improvements * EOF --------- Co-authored-by: parity-processbot <>
* add LaneState enum and a field to lanes data * use OptionQuery in InboundLanes and OutboundLanes * ensure that lanes are opened when accessing them * an option to specify opened lanes in genesis config + fixed tests * added PR reference to TODO * fix failing benchmarks * spelling * get_or_init_data -> data
related to #2451 and #2213
This PR introduces important change to runtime - now if the lane does not exists in the storage (
InboundLanes
andOutboundLanes
), we don't create it automatically. Instead we are (will for the 2nd option) provide two options:The only thing that is left here is compiling and running everything locally to be sure that I haven't forgot anything. But it isn't a stopped for reviewAll is good