mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-28 00:28:20 -05:00
feat: impl of bad_blocks handler (#16209)
Signed-off-by: Aliaksei Misiukevich <taberlick@gmail.com> Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
committed by
GitHub
parent
4e84e42f1e
commit
4122680833
@@ -368,7 +368,7 @@ where
|
||||
DebugApiClient::raw_block(client, block_id).await.unwrap_err();
|
||||
DebugApiClient::raw_transaction(client, B256::default()).await.unwrap();
|
||||
DebugApiClient::raw_receipts(client, block_id).await.unwrap();
|
||||
assert!(is_unimplemented(DebugApiClient::bad_blocks(client).await.err().unwrap()));
|
||||
DebugApiClient::bad_blocks(client).await.unwrap();
|
||||
}
|
||||
|
||||
async fn test_basic_net_calls<C>(client: &C)
|
||||
|
||||
@@ -940,7 +940,7 @@ where
|
||||
|
||||
/// Handler for `debug_getBadBlocks`
|
||||
async fn bad_blocks(&self) -> RpcResult<Vec<RpcBlock>> {
|
||||
Err(internal_rpc_err("unimplemented"))
|
||||
Ok(vec![])
|
||||
}
|
||||
|
||||
/// Handler for `debug_traceChain`
|
||||
|
||||
Reference in New Issue
Block a user