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

Attempt to make Client generic over Hasher/NodeCodec - #574

Closed
dvdplm wants to merge 2 commits into
masterfrom
db/make-Client-generic-over-hasher-and-rlp-codec
Closed

Attempt to make Client generic over Hasher/NodeCodec#574
dvdplm wants to merge 2 commits into
masterfrom
db/make-Client-generic-over-hasher-and-rlp-codec

Conversation

@dvdplm

@dvdplmdvdplm commented Aug 15, 2018

Copy link
Copy Markdown
Contributor

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?

This hits a problem when calling `with_externalities` as the `Externalities` cannot be generic due to the limitations of `environmental`. Can this be solved?
@dvdplmdvdplm self-assigned this Aug 15, 2018
@dvdplmdvdplm 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
Copy Markdown
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.

@gavofyorkgavofyork 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
Copy Markdown
ContributorAuthor

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

@dvdplmdvdplm closed this Aug 22, 2018
@dvdplm
dvdplm deleted the db/make-Client-generic-over-hasher-and-rlp-codec branch August 22, 2018 18:59
@dvdplmdvdplm 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 <alexandru.vasile@parity.io>
* Add missing crates for releasing chore
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Update changelog
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Update changelog message & remove non-user facing PRs
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
* Update CHANGELOG.md
Co-authored-by: James Wilson <james@jsdw.me>
* Update CHANGELOG.md
Co-authored-by: James Wilson <james@jsdw.me>
Co-authored-by: James Wilson <james@jsdw.me>
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A3-in_progressPull 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

@dvdplm@gavofyork