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

validator_discovery: cache by (Hash, ParaId)#2402

Merged
rphmeier merged 1 commit intomasterfrom
ao-cache-validator-connection-requets-per-hash-and-paraid
Feb 9, 2021
Merged

validator_discovery: cache by (Hash, ParaId)#2402
rphmeier merged 1 commit intomasterfrom
ao-cache-validator-connection-requets-per-hash-and-paraid

Conversation

@ordian
Copy link

@ordian ordian commented Feb 8, 2021

Addresses #2372 (comment).

@ordian ordian 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. labels Feb 8, 2021
@rphmeier
Copy link
Contributor

rphmeier commented Feb 9, 2021

How will it interact if we make multiple requests for the same validator under the different ParaIds? e.g. how we intend to use it in availability recovery / approval checking?

@ordian
Copy link
Author

ordian commented Feb 9, 2021

How will it interact if we make multiple requests for the same validator under the different ParaIds? e.g. how we intend to use it in availability recovery / approval checking?

AFAIK, availability recovery does not use this API. But it would work just fine. We would issue a second request and if the validator is already connected, we'd send the result immediately. Cleanup also works correctly, we have to deal with reference counting of requested validators anyway.

@rphmeier rphmeier merged commit aea7435 into master Feb 9, 2021
@rphmeier rphmeier deleted the ao-cache-validator-connection-requets-per-hash-and-paraid branch February 9, 2021 20:42
ordian added a commit that referenced this pull request Feb 11, 2021
* master:
  Implement Approval Voting Subsystem (#2112)
  Introduce PerPeerSet utility that allows to segrate based on PeerSet (#2420)
  [CI] Move check_labels to github actions (#2415)
  runtime: set equivocation report longevity (#2404)
  Companion for #7936: Migrate pallet-balances to pallet attribute macro (#2331)
  Corrected Physical (#2414)
  validator_discovery: cache by (Hash, ParaId) (#2402)
  Enable wasmtime caching for PVF (companion for #8057) (#2387)
  Use construct_runtime in tests, remove default PalletInfo impl (#2409)
  validator_discovery: pass PeerSet to the request (#2372)
  guide: more robust approval counting procedure (#2378)
  Publish rococo on every push to `rococo-v1` branch (#2388)
  Bump trie-db from 0.22.2 to 0.22.3 (#2344)
  Send view to new peers (#2392)
ordian added a commit that referenced this pull request Feb 11, 2021
* master:
  Implement Approval Voting Subsystem (#2112)
  Introduce PerPeerSet utility that allows to segrate based on PeerSet (#2420)
  [CI] Move check_labels to github actions (#2415)
  runtime: set equivocation report longevity (#2404)
  Companion for #7936: Migrate pallet-balances to pallet attribute macro (#2331)
  Corrected Physical (#2414)
  validator_discovery: cache by (Hash, ParaId) (#2402)
  Enable wasmtime caching for PVF (companion for #8057) (#2387)
  Use construct_runtime in tests, remove default PalletInfo impl (#2409)
  validator_discovery: pass PeerSet to the request (#2372)
  guide: more robust approval counting procedure (#2378)
  Publish rococo on every push to `rococo-v1` branch (#2388)
  Bump trie-db from 0.22.2 to 0.22.3 (#2344)
  Send view to new peers (#2392)
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants