-
Notifications
You must be signed in to change notification settings - Fork 858
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
Rewrite Externalities
to take &mut self
everywhere
#37
Comments
If I could get bit of help and quite explanation about how & why, I would love to take this. |
What kind of help do you need? |
Hello @bkchr I believe the write operations already take |
As described in the intial post, all functions should take |
@liamaharon IIRC this would have helped with some of the work related making a RPC-baed externalities as well, although we decided to drop that for now. |
…aritytech#37) First, we increase the size to 10MiB for the local cache. Second, we give the node cache a bigger max size than the value cache, see the changed comment on why. In general this should ensure that we are able to cache the `:code` and not directly throw it out of the cache because it is too big (which currently happens when the size of the runtime > 2MiB). In the future this should be improved to ensure that certain values are not removed from the cache at all, like `:code`. Co-authored-by: Bastian Köcher <git@kchr.de> Signed-off-by: Robert G. Jakabosky <rjakabosky+neopallium@neoawareness.com>
Make `chainHead_unstable_storage` more powerful
* Run RustFmt as part of the CI * Format repo * Run RustFmt before the default Travis build step Apparently if you override `script` you also need to make sure to `build` and `test` the code yourself. * Format repo
* refactoring: introduce Params in network worker * Initial metrics in subcoin-network * Initial metrics in sc-consensus-nakamoto * Spawn prometheus service in import-blocks command * Use GaugeVec for block_execution_time * Rename --bootnode to --seednodes in subcoin networking params * More subcoin network metrics * Fix test * FMT * Add block transactions count metric * Add docker * Add dashboard.json * Add README.md * Update grafana README.md * . * Update dashboard.json * Add block size metric * Update readme (paritytech#38) * Update README.md * Update README.md * Update README.md * . * . * . * Update README.md * Update README.md * Update README.md * Rate limiting on metric report of block_execution
* various fixes Signed-off-by: Adrian Catangiu <adrian@parity.io> * Validate without returning fee --------- Signed-off-by: Adrian Catangiu <adrian@parity.io> Co-authored-by: Adrian Catangiu <adrian@parity.io>
The
Externalities
trait should be rewritten to take&mut self
everywhere. After that we should be able to changeas_trie_db_cache
/as_trie_db_mut_cache
to take a&mut self
. Then we should be able to remove theMutexes
.Originally posted by @arkpar in paritytech/substrate#11407 (comment)
The text was updated successfully, but these errors were encountered: