Skip to content

Commit

Permalink
fix: update snaphshots in circuits.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cheethas committed Apr 27, 2023
1 parent c8ce48c commit f81ba76
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,15 @@ sibling_path: [ 0x1120 0x1121 0x1122 0x1123 0x1124 0x1125 0x1126 0x1127 ]
]
new_historic_private_data_tree_roots: [ 0x2000 0x2001 0x2002 0x2003 0x2004 0x2005 0x2006 0x2007 ]
new_historic_contract_tree_roots: [ 0x2100 0x2101 0x2102 0x2103 0x2104 0x2105 0x2106 0x2107 ]
new_l1_to_l2_messages: [ 0x2100 0x2101 0x2102 0x2103 0x2104 0x2105 0x2106 0x2107 0x2100 0x2101 0x2102 0x2103 0x2104 0x2105 0x2106 0x2107 ]
new_l1_to_l2_message_tree_root_sibling_path: [ 0x2100 0x2101 0x2102 0x2103 ]
new_historic_l1_to_l2_message_roots_tree_sibling_path: [ 0x2104 0x2105 0x2106 0x2107 0x2108 0x2109 0x210a 0x210b ]
start_l1_to_l2_message_tree_snapshot: root: 0x210c
next_available_leaf_index: 0
start_historic_tree_l1_to_l2_message_tree_roots_snapshot: root: 0x210d00000000
next_available_leaf_index: 0
"
`;

Expand Down Expand Up @@ -219,6 +228,19 @@ next_available_leaf_index: 2816
end_tree_of_historic_contract_tree_roots_snapshot: root: 0xc00
next_available_leaf_index: 3072
start_l1_to_l2_messages_tree_snapshot: root: 0xd00
next_available_leaf_index: 3328
end_l1_tol2_messages_tree_snapshot: root: 0xe00
next_available_leaf_index: 3584
start_tree_of_historic_l1_to_l2_messages_tree_roots_snapshot: root: 0xf00
next_available_leaf_index: 3840
end_tree_of_historic_l1_tol2_messages_tree_roots_snapshot: root: 0x1000
next_available_leaf_index: 4096
calldata_hash: [ 0x1 0x2 ]
l1_to_l2_messages_hash: [ 0x3 0x4 ]
"
`;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeEmptyProof } from '@aztec/circuits.js';
import { NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP, makeEmptyProof } from '@aztec/circuits.js';
import { P2P, P2PClientState } from '@aztec/p2p';
import { L2Block, PrivateTx, Tx, UnverifiedData } from '@aztec/types';
import { MerkleTreeId, MerkleTreeOperations, WorldStateRunningState, WorldStateSynchroniser } from '@aztec/world-state';
Expand Down Expand Up @@ -64,6 +64,8 @@ describe('sequencer', () => {
expect(blockBuilder.buildL2Block).toHaveBeenCalledWith(
lastBlockNumber + 1,
expectedTxHashes.map(hash => expect.objectContaining({ hash })),
// TODO: longer term solution to this
Array(NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP).fill(0),
);
expect(publisher.processL2Block).toHaveBeenCalledWith(block);
expect(publisher.processUnverifiedData).toHaveBeenCalledWith(lastBlockNumber + 1, expectedUnverifiedData);
Expand Down Expand Up @@ -100,6 +102,8 @@ describe('sequencer', () => {
expect(blockBuilder.buildL2Block).toHaveBeenCalledWith(
lastBlockNumber + 1,
expectedTxHashes.map(hash => expect.objectContaining({ hash })),
// TODO: longer term solution to this
Array(NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP).fill(0),
);
expect(publisher.processL2Block).toHaveBeenCalledWith(block);
expect(publisher.processUnverifiedData).toHaveBeenCalledWith(lastBlockNumber + 1, expectedUnverifiedData);
Expand Down

0 comments on commit f81ba76

Please sign in to comment.