celestiaorg / celestiaorg/celestia-node
libheader: move trusted peer check to constructor
Open
area:header
good first issue
- Dominant language
- Go
- Stars
- 996
- Forks
- 1.1k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 34
Description
The check is [here](https://github.com/celestiaorg/celestia-node/blob/bd96ae33fe2a905c99d0b184c99ebe21a2bb8196/libs/header/p2p/exchange.go#L244-L246). Move to the constructor of the component and fix supporting tests.
Contributor guide
Assessment
This issue has not been assessed yet.