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

Remove HeaderBackend requirement from AuthorityDiscovery and NetworkWorker #13730

Conversation

skunert
Copy link
Contributor

@skunert skunert commented Mar 27, 2023

NetworkWorker and AuthorityDiscovery took in a client that needed to implement HeaderBackend just to fetch the best hash/genesis hash. Shuffling around the code a bit can eliminate this client and allow some nice refactorings in cumulus.

cumulus companion: paritytech/cumulus#2385

@skunert skunert added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit T0-node This PR/Issue is related to the topic “node”. labels Mar 27, 2023
@skunert skunert requested a review from a team March 27, 2023 18:36
@bkchr bkchr requested a review from a team March 27, 2023 18:46
@skunert
Copy link
Contributor Author

skunert commented Mar 28, 2023

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 9b43d8f into paritytech:master Mar 28, 2023
@@ -688,7 +688,7 @@ impl NetworkConfiguration {
}

/// Network initialization parameters.
pub struct Params<Client> {
pub struct Params<Block: BlockT> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit. Can this be generic over Hash only?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aaakkk 🤣 Late again. Just a silly nit anyway

bkchr pushed a commit that referenced this pull request Apr 4, 2023
…orker (#13730)

* Remove `HeaderBackend` requirement from `NetworkWorker`

* Remove HeaderBackend from authority-discovery
pgherveou pushed a commit that referenced this pull request Apr 4, 2023
…orker (#13730)

* Remove `HeaderBackend` requirement from `NetworkWorker`

* Remove HeaderBackend from authority-discovery
gpestana pushed a commit that referenced this pull request Apr 23, 2023
…orker (#13730)

* Remove `HeaderBackend` requirement from `NetworkWorker`

* Remove HeaderBackend from authority-discovery
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
…orker (paritytech#13730)

* Remove `HeaderBackend` requirement from `NetworkWorker`

* Remove HeaderBackend from authority-discovery
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants