Skip to content

Commit

Permalink
rename is_storage_empty to should_init_chain
Browse files Browse the repository at this point in the history
  • Loading branch information
bkolad committed Aug 7, 2023
1 parent 65d0fc2 commit 8896c43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions full-node/sov-stf-runner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ where
da_service: DA,
ledger_db: LedgerDB,
mut app: ST,
is_storage_empty: bool,
should_init_chain: bool,
genesis_config: InitialState<ST, Vm, DA>,
) -> Result<Self, anyhow::Error> {
let rpc_config = rollup_config.rpc_config;

let prev_state_root = {
// Check if the rollup has previously been initialized
if is_storage_empty {
if should_init_chain {
info!("No history detected. Initializing chain...");
app.init_chain(genesis_config);
info!("Chain initialization is done.");
Expand Down

0 comments on commit 8896c43

Please sign in to comment.