mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(op): fix logs (#8329)
This commit is contained in:
@ -121,7 +121,7 @@ impl ImportOpCommand {
|
||||
info!(target: "reth::cli", "Chain file chunk read");
|
||||
|
||||
total_decoded_blocks += file_client.headers_len();
|
||||
total_decoded_txns += file_client.bodies_len();
|
||||
total_decoded_txns += file_client.total_transactions();
|
||||
|
||||
for (block_number, body) in file_client.bodies_iter_mut() {
|
||||
body.transactions.retain(|tx| {
|
||||
@ -172,16 +172,17 @@ impl ImportOpCommand {
|
||||
|
||||
let provider = provider_factory.provider()?;
|
||||
|
||||
let total_imported_blocks = provider.tx_ref().entries::<tables::Headers>()?;
|
||||
let total_imported_blocks = provider.tx_ref().entries::<tables::HeaderNumbers>()?;
|
||||
let total_imported_txns = provider.tx_ref().entries::<tables::TransactionHashNumbers>()?;
|
||||
|
||||
if total_decoded_blocks != total_imported_blocks ||
|
||||
total_decoded_txns != total_imported_txns
|
||||
total_decoded_txns != total_imported_txns + total_filtered_out_dup_txns
|
||||
{
|
||||
error!(target: "reth::cli",
|
||||
total_decoded_blocks,
|
||||
total_imported_blocks,
|
||||
total_decoded_txns,
|
||||
total_filtered_out_dup_txns,
|
||||
total_imported_txns,
|
||||
"Chain was partially imported"
|
||||
);
|
||||
|
||||
@ -19,7 +19,7 @@ use reth_provider::{
|
||||
BundleStateWithReceipts, OriginalValuesKnown, ProviderFactory, StageCheckpointReader,
|
||||
StateWriter, StaticFileProviderFactory, StaticFileWriter,
|
||||
};
|
||||
use tracing::{debug, error, info};
|
||||
use tracing::{debug, error, info, trace};
|
||||
|
||||
use std::{path::PathBuf, sync::Arc};
|
||||
|
||||
@ -89,7 +89,7 @@ impl ImportReceiptsCommand {
|
||||
|
||||
for stage in StageId::ALL {
|
||||
let checkpoint = provider.get_stage_checkpoint(stage)?;
|
||||
debug!(target: "reth::cli",
|
||||
trace!(target: "reth::cli",
|
||||
?stage,
|
||||
?checkpoint,
|
||||
"Read stage checkpoints from db"
|
||||
|
||||
Reference in New Issue
Block a user