celestiaorg / celestiaorg/celestia-node

libheader: move trusted peer check to constructor

Open
#1,671 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.