chore: rename Block*Provider for Block*Reader (#3385)

This commit is contained in:
joshieDo
2023-06-26 15:13:45 +01:00
committed by GitHub
parent 9c1b48b983
commit 054f30f43c
52 changed files with 188 additions and 194 deletions

View File

@ -26,7 +26,7 @@ During this process, a new `NetworkManager` is created through the `NetworkManag
```rust ignore
impl<C> NetworkManager<C>
where
C: BlockProvider,
C: BlockReader,
{
//--snip--
@ -267,7 +267,7 @@ In Reth, once a new `NetworkState` is initialized as the node starts up and a ne
```rust ignore
impl<C> NetworkState<C>
where
C: BlockProvider,
C: BlockReader,
{
/// Advances the state
pub(crate) fn poll(&mut self, cx: &mut Context<'_>) -> Poll<StateAction> {

View File

@ -88,7 +88,7 @@ Let's begin by taking a look at the line where the network is started, with the
```rust,ignore
async fn start_network<C>(config: NetworkConfig<C>) -> Result<NetworkHandle, NetworkError>
where
C: BlockProvider + HeaderProvider + 'static,
C: BlockReader + HeaderProvider + 'static,
{
let client = config.client.clone();
let (handle, network, _txpool, eth) =