Skip to content

Commit

Permalink
Comment out commitment calc temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed Oct 13, 2023
1 parent 8d38a3b commit d7809d1
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions core/lib/zksync_core/src/state_keeper/io/seal_logic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ impl UpdatesManager {

let initial_bootloader_contents =
finished_batch.final_bootloader_memory.unwrap_or_default();
let full_bootloader_memory = expand_bootloader_contents(&initial_bootloader_contents);
let bootloader_initial_content_commitment =
initial_heap_content_commitment_fixed(&full_bootloader_memory);

let events_queue_commitment = events_queue_commitment_fixed(&Vec::new()); // TODO: put actual events queue.
// let full_bootloader_memory = expand_bootloader_contents(&initial_bootloader_contents);
// let bootloader_initial_content_commitment =
// initial_heap_content_commitment_fixed(&full_bootloader_memory);
//
// let events_queue_commitment = events_queue_commitment_fixed(&Vec::new()); // TODO: put actual events queue.

let l1_batch = L1BatchHeader {
number: l1_batch_env.number,
Expand All @@ -216,10 +216,8 @@ impl UpdatesManager {
l2_fair_gas_price: self.fair_l2_gas_price(),
base_system_contracts_hashes: self.base_system_contract_hashes(),
protocol_version: Some(self.protocol_version()),
events_queue_commitment: Some(H256(events_queue_commitment)),
bootloader_initial_content_commitment: Some(H256(
bootloader_initial_content_commitment,
)),
events_queue_commitment: Some(H256::zero()),
bootloader_initial_content_commitment: Some(H256::zero()),
};

transaction
Expand Down

0 comments on commit d7809d1

Please sign in to comment.