Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Attempt to make Client generic over Hasher/NodeCodec #574

Closed

Conversation

dvdplm
Copy link
Contributor

@dvdplm dvdplm commented Aug 15, 2018

This PR is more of a question/illustration of a problem I've had on previous PRs. The attempt to make Client generic over Hasher/NodeCodec hits a problem when calling runtime_io::with_externalities (example callsite) as the Externalities cannot be generic due to the limitations of
environmental. Can this be solved somehow?

dvdplm added 2 commits August 15, 2018 22:22
This hits a problem when calling `with_externalities` as the `Externalities` cannot be generic due to the limitations of `environmental`. Can this be solved?
@dvdplm dvdplm self-assigned this Aug 15, 2018
@dvdplm dvdplm added A1-onice I4-annoyance The client behaves within expectations, however this “expected behaviour” itself is at issue. labels Aug 15, 2018
@gavofyork
Copy link
Member

i don't think it can be "solved" as such, but i'm not sure it really needs to be. the externalities should only provide static, fixed functionality - afaik both types and semantics that environmental! provides within its scope are well-defined and non-generic. as such there should be no need to make environmental generic.

@gavofyork gavofyork added A3-in_progress Pull request is in progress. No review needed at this stage. and removed A1-onice I4-annoyance The client behaves within expectations, however this “expected behaviour” itself is at issue. labels Aug 20, 2018
@dvdplm
Copy link
Contributor Author

dvdplm commented Aug 22, 2018

Ok, yeah, I tinkered further with it and reached pretty much the same conclusion, thanks for the feedback. Closing.

@dvdplm dvdplm closed this Aug 22, 2018
@dvdplm dvdplm deleted the db/make-Client-generic-over-hasher-and-rlp-codec branch August 22, 2018 18:59
@dvdplm dvdplm mentioned this pull request Sep 7, 2018
lamafab pushed a commit to lamafab/substrate that referenced this pull request Jun 16, 2020
* Bump Substrate.

* Bump version
liuchengxu added a commit to chainx-org/substrate that referenced this pull request Aug 23, 2021
* Place the deprecated modules

* Use regenesis_params

* Imple regenesis builder

* Try loading the regenesis data

* Commit regenesis data

* Fix format

* Use 3696796

* Delete unused file

* Remove deprecated_builder

* Nits
helin6 pushed a commit to boolnetwork/substrate that referenced this pull request Jul 25, 2023
* Bump versions to `v0.22.0`

Signed-off-by: Alexandru Vasile <[email protected]>

* Add missing crates for releasing chore

Signed-off-by: Alexandru Vasile <[email protected]>

* Update changelog

Signed-off-by: Alexandru Vasile <[email protected]>

* Update changelog message & remove non-user facing PRs

Signed-off-by: Alexandru Vasile <[email protected]>

* Update CHANGELOG.md

Co-authored-by: James Wilson <[email protected]>

* Update CHANGELOG.md

Co-authored-by: James Wilson <[email protected]>

Co-authored-by: James Wilson <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A3-in_progress Pull request is in progress. No review needed at this stage.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants