Skip to content

Commit

Permalink
fix(comments)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trantorian1 committed Nov 29, 2024
1 parent b91914a commit 470890b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion crates/client/mempool/src/block_production.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,11 @@ impl<Mempool: MempoolProvider> BlockProductionTask<Mempool> {
declared_classes,
)
.await?;
self.block.info.header.parent_block_hash = import_result.block_hash; // fix temp parent block hash for new pending :)
// do not forget to flush :)
self.backend.flush().map_err(|err| BlockImportError::Internal(format!("DB flushing error: {err:#}").into()))?;

// fix temp parent block hash for new pending :)
self.block.info.header.parent_block_hash = import_result.block_hash;

// Prepare for next block.
self.executor =
Expand Down
2 changes: 1 addition & 1 deletion crates/node/src/cli/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub struct SyncParams {
/// blocks. This can either be once the node has caught up with the head of
/// the chain or when it has synced as many blocks as specified by
/// --n-blocks-to-sync.
#[clap(env = "MADARA_STOP_ON_SYNC", long, value_name = "STOP ON SYNC", default_value_t = false)]
#[clap(env = "MADARA_STOP_ON_SYNC", long, default_value_t = false)]
pub stop_on_sync: bool,

/// Periodically create a backup, for debugging purposes. Use it with `--backup-dir <PATH>`.
Expand Down

0 comments on commit 470890b

Please sign in to comment.