pub fn push(&mut self, l1_batch_number: L1BatchNumber, diff: BatchDiff) {
        if let Some(first_diff_l1_batch_number) = self.first_diff_l1_batch_number {
            let next_expected_batch_number =
                first_diff_l1_batch_number + u32::try_from(self.diffs.len()).unwrap();
            assert_eq!(l1_batch_number, next_expected_batch_number);
        } else {
            self.first_diff_l1_batch_number = Some(l1_batch_number);
        }
        self.diffs.push_back(diff);
    }
Pushes the diff.

# Panics

Panics if the batch number of the pushed diff is not sequential.
core/lib/state/src/storage_factory/rocksdb_with_memory.rs