fix: also clear merkle stage block progress (#1955)

This commit is contained in:
Georgios Konstantopoulos
2023-03-23 18:23:25 -07:00
committed by GitHub
parent 2ce72c51e1
commit cec0102b59

View File

@@ -13,7 +13,7 @@ use reth_db::{
};
use reth_primitives::ChainSpec;
use reth_staged_sync::utils::{chainspec::genesis_value_parser, init::insert_genesis_state};
use reth_stages::stages::EXECUTION;
use reth_stages::stages::{EXECUTION, MERKLE_EXECUTION};
use std::sync::Arc;
use tracing::info;
@@ -81,6 +81,7 @@ impl Command {
"TrieLoader".to_string(),
Vec::new(),
)?;
tx.put::<tables::SyncStage>(MERKLE_EXECUTION.0.to_string(), 0)?;
Ok::<_, eyre::Error>(())
})??;
}