Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-atreya committed Nov 8, 2024
1 parent 0487a8d commit 9bae63a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 2 additions & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ allow = [
"Unicode-DFS-2016",
"Unlicense",
"Zlib",
"Unicode-3.0",
]

exceptions = [
Expand All @@ -48,4 +49,4 @@ license-files = [{ path = "LICENSE", hash = 0x001c7e6c }]

[sources]
unknown-registry = "deny"
unknown-git = "deny"
unknown-git = "deny"
10 changes: 2 additions & 8 deletions src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ use crate::{
cache::{BlockchainDb, FlushJsonBlockCacheDB, MemDb, StorageInfo},
error::{DatabaseError, DatabaseResult},
};
use alloy_consensus::AnyHeader;
use alloy_primitives::{keccak256, Address, Bytes, B256, U256};
use alloy_provider::{
network::{AnyNetwork, AnyRpcBlock, AnyRpcTransaction, AnyTxEnvelope},
Provider,
};
use alloy_rpc_types::{Block, BlockId, Header, Transaction};
use alloy_rpc_types::{BlockId, Transaction};
use alloy_serde::WithOtherFields;
use alloy_transport::Transport;
use eyre::WrapErr;
Expand Down Expand Up @@ -673,12 +672,7 @@ impl SharedBackend {
}

/// Returns the full block for the given block identifier
pub fn get_full_block(
&self,
block: impl Into<BlockId>,
) -> DatabaseResult<
WithOtherFields<Block<WithOtherFields<Transaction<AnyTxEnvelope>>, Header<AnyHeader>>>,
> {
pub fn get_full_block(&self, block: impl Into<BlockId>) -> DatabaseResult<AnyRpcBlock> {
self.blocking_mode.run(|| {
let (sender, rx) = oneshot_channel();
let req = BackendRequest::FullBlock(block.into(), sender);
Expand Down

0 comments on commit 9bae63a

Please sign in to comment.