Skip to content

Commit

Permalink
refactor(mem-pool): partial mem block dump
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroqn committed Dec 11, 2021
1 parent 19426d2 commit 808c7af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/mem-pool/src/mem_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,20 +202,20 @@ impl MemBlock {
}

pub fn pack(&self) -> packed::MemBlock {
let touched_keys = self.touched_keys().iter().cloned().collect::<Vec<_>>();
// let touched_keys = self.touched_keys().iter().cloned().collect::<Vec<_>>();

packed::MemBlock::new_builder()
.block_producer_id(self.block_producer_id.pack())
.txs(self.txs.pack())
.withdrawals(self.withdrawals.pack())
.finalized_custodians(self.finalized_custodians.pack())
// .finalized_custodians(self.finalized_custodians.pack())
.deposits(self.deposits.pack())
.state_checkpoints(self.state_checkpoints.pack())
.txs_prev_state_checkpoint(self.txs_prev_state_checkpoint.pack())
// .state_checkpoints(self.state_checkpoints.pack())
// .txs_prev_state_checkpoint(self.txs_prev_state_checkpoint.pack())
.block_info(self.block_info.clone())
.prev_merkle_state(self.prev_merkle_state.clone())
.post_merkle_state(self.post_merkle_state.clone())
.touched_keys(touched_keys.pack())
// .post_merkle_state(self.post_merkle_state.clone())
// .touched_keys(touched_keys.pack())
.build()
}

Expand Down

0 comments on commit 808c7af

Please sign in to comment.