Skip to content

Commit

Permalink
remove some info
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Jan 13, 2025
1 parent 5fa8ad3 commit 04fa250
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions flexidag/src/blockdag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,6 @@ impl BlockDAG {
self.storage.reachability_store.upgradable_read(),
);

info!("start to commit via batch1, header id: {:?}", header.id());

// Store ghostdata
process_key_already_error(self.storage.ghost_dag_store.insert_batch(
&mut batch,
Expand All @@ -378,8 +376,6 @@ impl BlockDAG {
))
.expect("failed to ghostdata in batch");

info!("start to commit via batch2, header id: {:?}", header.id());

// Update reachability store
debug!(
"start to update reachability data for block: {:?}, number: {:?}",
Expand All @@ -393,12 +389,6 @@ impl BlockDAG {
.collect::<Vec<_>>()
.into_iter();

info!(
"start to commit via batch3, header id: {:?}, count of mergeset: {:?}, ",
header.id(),
merge_set.len()
);

match inquirer::add_block(
&mut stage,
header.id(),
Expand All @@ -420,17 +410,13 @@ impl BlockDAG {
},
}

info!("start to commit via batch4, header id: {:?}", header.id());

process_key_already_error(self.storage.relations_store.write().insert_batch(
&mut batch,
header.id(),
BlockHashes::new(parents),
))
.expect("failed to insert relations in batch");

info!("start to commit via batch5, header id: {:?}", header.id());

// Store header store
process_key_already_error(self.storage.header_store.insert(
header.id(),
Expand All @@ -439,24 +425,18 @@ impl BlockDAG {
))
.expect("failed to insert header in batch");

info!("start to commit via batch6, header id: {:?}", header.id());

// the read lock will be updated to the write lock
// and then write the batch
// and then release the lock
stage
.commit(&mut batch)
.expect("failed to write the stage reachability in batch");

info!("start to commit via batch7, header id: {:?}", header.id());

// write the data just one time
self.storage
.write_batch(batch)
.expect("failed to write dag data in batch");

info!("start to commit via batch8, header id: {:?}", header.id());

drop(lock_guard);
info!("finish writing the batch, head id: {:?}", header.id());

Expand Down

0 comments on commit 04fa250

Please sign in to comment.