Skip to content
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

ks-265 wrap local target in capability registry with transmission logic #13396

Merged
merged 4 commits into from
Jun 3, 2024

Conversation

ettec
Copy link
Collaborator

@ettec ettec commented Jun 3, 2024

No description provided.

@ettec ettec force-pushed the shim-for-local-transmission-protocol branch from 44f6799 to 339b329 Compare June 3, 2024 09:17
@ettec ettec marked this pull request as ready for review June 3, 2024 09:17
@ettec ettec requested review from a team as code owners June 3, 2024 09:17
@ettec ettec marked this pull request as draft June 3, 2024 09:34
@ettec ettec force-pushed the shim-for-local-transmission-protocol branch from 116aba1 to e47e671 Compare June 3, 2024 11:52
@ettec ettec force-pushed the shim-for-local-transmission-protocol branch from 09f4fb6 to 4323490 Compare June 3, 2024 12:02
@ettec ettec force-pushed the shim-for-local-transmission-protocol branch from 4323490 to 51292df Compare June 3, 2024 12:03
@ettec ettec force-pushed the shim-for-local-transmission-protocol branch from dbe6559 to 1c588d6 Compare June 3, 2024 12:13
@ettec ettec marked this pull request as ready for review June 3, 2024 12:54
@cedric-cordenier cedric-cordenier added this pull request to the merge queue Jun 3, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 3, 2024
@ettec ettec added this pull request to the merge queue Jun 3, 2024
Merged via the queue into develop with commit 5ff32bd Jun 3, 2024
108 checks passed
@ettec ettec deleted the shim-for-local-transmission-protocol branch June 3, 2024 17:03
}

if opts.CapabilitiesRegistry == nil {
peerID := externalPeerWrapper.GetPeer().ID()
Copy link
Contributor

Choose a reason for hiding this comment

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

This won't work. Peer is ready only after the wrapper is Start()-ed.

Copy link
Contributor

Choose a reason for hiding this comment

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

PeerID is currently extracted from Keystore and that is not accessible until the services start.

return nil, fmt.Errorf("failed to create hardcoded Don network setup: %w", err)
}

if opts.CapabilitiesRegistry == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this ever be nil? Registry is created in shell.go.

bolekk added a commit that referenced this pull request Jun 3, 2024
See comments on #13396
Registry can't easily access PeerID when it is being created.
This fix moves desired wrapping to the Engine.
github-merge-queue bot pushed a commit that referenced this pull request Jun 4, 2024
See comments on #13396
Registry can't easily access PeerID when it is being created.
This fix moves desired wrapping to the Engine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants