mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-08 15:03:58 -05:00
feat: make BlockReaderIdExt object safe
This commit is contained in:
@@ -276,3 +276,14 @@ pub trait BlockWriter: Send + Sync {
|
||||
prune_modes: Option<&PruneModes>,
|
||||
) -> RethResult<()>;
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::test_utils::NoopProvider;
|
||||
|
||||
#[test]
|
||||
fn test_dyn_block_id_ext() {
|
||||
let _provider: Box<dyn BlockReaderIdExt> = Box::new(NoopProvider::default());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user