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

Panic in peer_info.rs seen in tests #6976

@tomaka

Description

@tomaka

The following line has just panicked for me in a unit test:

&self.0.endpoints[0] // `endpoints` are non-empty by definition

There is indeed a misunderstanding somewhere.
The information about a node are kept even after the node disconnects, and as such endpoints can reasonably be empty.

cc paritytech/polkadot-sdk#555

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions