remove log

This commit is contained in:
Peter Zhang 2025-11-24 18:43:20 +08:00
parent ef04124d09
commit 4326c48e97
2 changed files with 0 additions and 28 deletions

View File

@ -309,8 +309,6 @@ impl<E: HashElement, A: Algorithm<E>> AppendMerkleTree<E, A> {
/// Panics if the leaf is already set and different or the index is out of range. /// Panics if the leaf is already set and different or the index is out of range.
/// TODO: Batch computing intermediate nodes. /// TODO: Batch computing intermediate nodes.
pub fn fill_leaf(&mut self, index: usize, leaf: E) { pub fn fill_leaf(&mut self, index: usize, leaf: E) {
// print node leaf at 12288 index
if leaf.is_null() { if leaf.is_null() {
// fill leaf with null is not allowed. // fill leaf with null is not allowed.
} else if self.node(0, index).is_null() { } else if self.node(0, index).is_null() {

View File

@ -234,19 +234,6 @@ impl FlowWrite for FlowStore {
bail!("append_entries: invalid data size, len={}", data.data.len()); bail!("append_entries: invalid data size, len={}", data.data.len());
} }
let batch_data_12288 = self
.data_db
.get_entry_batch(12288)?
.unwrap_or_else(|| EntryBatch::new(12288));
debug!(
"Entry batch data at 12288 before insert: {:?}",
batch_data_12288
);
if let Some(unsealed_data) = batch_data_12288.to_unsealed_data() {
debug!("Unsealed data before insert: {:?}", unsealed_data);
}
let mut batch_list = Vec::new(); let mut batch_list = Vec::new();
for (start_entry_index, end_entry_index) in batch_iter( for (start_entry_index, end_entry_index) in batch_iter(
data.start_index, data.start_index,
@ -294,19 +281,6 @@ impl FlowWrite for FlowStore {
metrics::APPEND_ENTRIES.update_since(start_time); metrics::APPEND_ENTRIES.update_since(start_time);
let res = self.data_db.put_entry_batch_list(batch_list); let res = self.data_db.put_entry_batch_list(batch_list);
let batch_data_12288 = self
.data_db
.get_entry_batch(12288)?
.unwrap_or_else(|| EntryBatch::new(12288));
debug!(
"Entry batch data at 12288 after insert: {:?}",
batch_data_12288
);
if let Some(unsealed_data) = batch_data_12288.to_unsealed_data() {
debug!("Unsealed data after insert: {:?}", unsealed_data);
}
res res
} }