Skip to content

Commit d77bfd8

Browse files
authored
feat: Use generic HeaderTy for reth db get static-file headers (#18870)
Co-authored-by: sprites0 <[email protected]>
1 parent f54741c commit d77bfd8

File tree

1 file changed

+2
-2
lines changed
  • crates/cli/commands/src/db

1 file changed

+2
-2
lines changed

crates/cli/commands/src/db/get.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use reth_db_api::{
1212
tables, RawKey, RawTable, Receipts, TableViewer, Transactions,
1313
};
1414
use reth_db_common::DbTool;
15-
use reth_node_api::{ReceiptTy, TxTy};
15+
use reth_node_api::{HeaderTy, ReceiptTy, TxTy};
1616
use reth_node_builder::NodeTypesWithDB;
1717
use reth_provider::{providers::ProviderNodeTypes, StaticFileProviderFactory};
1818
use reth_static_file_types::StaticFileSegment;
@@ -96,7 +96,7 @@ impl Command {
9696
} else {
9797
match segment {
9898
StaticFileSegment::Headers => {
99-
let header = Header::decompress(content[0].as_slice())?;
99+
let header = HeaderTy::<N>::decompress(content[0].as_slice())?;
100100
let block_hash = BlockHash::decompress(content[1].as_slice())?;
101101
println!(
102102
"Header\n{}\n\nBlockHash\n{}",

0 commit comments

Comments
 (0)