mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rename Block*Provider for Block*Reader (#3385)
This commit is contained in:
@ -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> {
|
||||
|
||||
@ -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) =
|
||||
|
||||
Reference in New Issue
Block a user