Skip to content

Commit 0bff304

Browse files
committed
chore: more merge fixes, remove old logs
1 parent 5be91fa commit 0bff304

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

barretenberg/cpp/src/barretenberg/vm2/avm_sim_api.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ TxSimulationResult AvmSimAPI::simulate_with_hinted_dbs(const ProvingInputs& inpu
1414
AvmSimulationHelper simulation_helper;
1515
auto result = AVM_TRACK_TIME_V("simulation/all", simulation_helper.simulate_fast_with_hinted_dbs(inputs.hints));
1616

17+
if (debug_logging) {
18+
// TODO(fcarreiro): Enable once PI generation is complete.
19+
// BB_ASSERT_EQ(inputs.publicInputs, result.public_inputs);
20+
}
21+
1722
return result;
1823
}
1924

barretenberg/cpp/src/barretenberg/vm2/simulation/lib/hinting_dbs.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ auto& get_tree_info_helper(world_state::MerkleTreeId tree_id, const auto& tree_r
3939
// HintingContractsDB starts.
4040
std::optional<ContractInstance> HintingContractsDB::get_contract_instance(const AztecAddress& address) const
4141
{
42-
info("HintingContractsDB get_contract_instance");
4342
auto instance = db.get_contract_instance(address);
4443
// If we don't find the instance hint, this is not a catastrophic failure. The inner db should handle it, and
4544
// here we simply don't store any hint:
@@ -65,7 +64,6 @@ std::optional<ContractInstance> HintingContractsDB::get_contract_instance(const
6564

6665
std::optional<ContractClass> HintingContractsDB::get_contract_class(const ContractClassId& class_id) const
6766
{
68-
info("HintingContractsDB get_contract_class");
6967
auto klass = db.get_contract_class(class_id);
7068
// If we don't find the instance hint, this is not a catastrophic failure. The inner db should handle it, and
7169
// here we simply don't store any hint:
@@ -108,7 +106,6 @@ const AppendOnlyTreeSnapshot& HintingRawDB::get_tree_info(world_state::MerkleTre
108106

109107
SiblingPath HintingRawDB::get_sibling_path(world_state::MerkleTreeId tree_id, index_t leaf_index) const
110108
{
111-
info("HintingRawDB get_sib: ", leaf_index);
112109
auto tree_info = get_tree_info(tree_id);
113110
auto path = db.get_sibling_path(tree_id, leaf_index);
114111
GetSiblingPathKey key = { tree_info, tree_id, leaf_index };
@@ -119,7 +116,6 @@ SiblingPath HintingRawDB::get_sibling_path(world_state::MerkleTreeId tree_id, in
119116

120117
GetLowIndexedLeafResponse HintingRawDB::get_low_indexed_leaf(world_state::MerkleTreeId tree_id, const FF& value) const
121118
{
122-
info("HintingRawDB get_low_indexed_leaf");
123119
auto tree_info = get_tree_info(tree_id);
124120
auto resp = db.get_low_indexed_leaf(tree_id, value);
125121
GetPreviousValueIndexKey key = { tree_info, tree_id, value };
@@ -147,7 +143,6 @@ GetLowIndexedLeafResponse HintingRawDB::get_low_indexed_leaf(world_state::Merkle
147143

148144
FF HintingRawDB::get_leaf_value(world_state::MerkleTreeId tree_id, index_t leaf_index) const
149145
{
150-
info("HintingRawDB get_leaf_value");
151146
auto tree_info = get_tree_info(tree_id);
152147
auto value = db.get_leaf_value(tree_id, leaf_index);
153148
GetLeafValueKey key = { tree_info, tree_id, leaf_index };
@@ -159,7 +154,6 @@ FF HintingRawDB::get_leaf_value(world_state::MerkleTreeId tree_id, index_t leaf_
159154

160155
IndexedLeaf<PublicDataLeafValue> HintingRawDB::get_leaf_preimage_public_data_tree(index_t leaf_index) const
161156
{
162-
info("HintingRawDB get_leaf_preimage_public_data_tree");
163157
auto tree_info = get_tree_info(world_state::MerkleTreeId::PUBLIC_DATA_TREE);
164158
auto preimage = db.get_leaf_preimage_public_data_tree(leaf_index);
165159

@@ -172,7 +166,6 @@ IndexedLeaf<PublicDataLeafValue> HintingRawDB::get_leaf_preimage_public_data_tre
172166

173167
IndexedLeaf<NullifierLeafValue> HintingRawDB::get_leaf_preimage_nullifier_tree(index_t leaf_index) const
174168
{
175-
info("HintingRawDB get_leaf_preimage_nullifier_tree");
176169
auto tree_info = get_tree_info(world_state::MerkleTreeId::NULLIFIER_TREE);
177170
auto preimage = db.get_leaf_preimage_nullifier_tree(leaf_index);
178171
GetLeafPreimageKey key = { tree_info, leaf_index };
@@ -185,7 +178,6 @@ IndexedLeaf<NullifierLeafValue> HintingRawDB::get_leaf_preimage_nullifier_tree(i
185178
SequentialInsertionResult<PublicDataLeafValue> HintingRawDB::insert_indexed_leaves_public_data_tree(
186179
const PublicDataLeafValue& leaf_value)
187180
{
188-
info("HintingRawDB insert_indexed_leaves_public_data_tree");
189181
auto tree_info = get_tree_info(world_state::MerkleTreeId::PUBLIC_DATA_TREE);
190182
auto result = db.insert_indexed_leaves_public_data_tree(leaf_value);
191183
// The underlying db should update its state post insertion:
@@ -208,7 +200,6 @@ SequentialInsertionResult<PublicDataLeafValue> HintingRawDB::insert_indexed_leav
208200
SequentialInsertionResult<NullifierLeafValue> HintingRawDB::insert_indexed_leaves_nullifier_tree(
209201
const NullifierLeafValue& leaf_value)
210202
{
211-
info("HintingRawDB insert_indexed_leaves_nullifier_tree");
212203
auto tree_info = get_tree_info(world_state::MerkleTreeId::NULLIFIER_TREE);
213204
auto result = db.insert_indexed_leaves_nullifier_tree(leaf_value);
214205
// The underlying db should update its state post insertion:
@@ -230,7 +221,6 @@ SequentialInsertionResult<NullifierLeafValue> HintingRawDB::insert_indexed_leave
230221

231222
void HintingRawDB::create_checkpoint()
232223
{
233-
info("HintingRawDB create_checkpoint");
234224
auto old_checkpoint_id = db.get_checkpoint_id();
235225
// Update underlying db:
236226
db.create_checkpoint();
@@ -248,7 +238,6 @@ void HintingRawDB::create_checkpoint()
248238

249239
void HintingRawDB::commit_checkpoint()
250240
{
251-
info("HintingRawDB commit_checkpoint");
252241
auto old_checkpoint_id = db.get_checkpoint_id();
253242
// Update underlying db:
254243
db.commit_checkpoint();
@@ -265,7 +254,6 @@ void HintingRawDB::commit_checkpoint()
265254

266255
void HintingRawDB::revert_checkpoint()
267256
{
268-
info("HintingRawDB revert_checkpoint");
269257
auto state_before = db.get_tree_roots();
270258
auto old_checkpoint_id = db.get_checkpoint_id();
271259
// Update underlying db:
@@ -292,7 +280,6 @@ void HintingRawDB::pad_tree(world_state::MerkleTreeId tree_id, size_t num_leaves
292280

293281
std::vector<AppendLeafResult> HintingRawDB::append_leaves(world_state::MerkleTreeId tree_id, std::span<const FF> leaves)
294282
{
295-
info("HintingRawDB append_leaves: ", leaves.size());
296283
auto tree_info = get_tree_info(tree_id);
297284
// Update underlying db:
298285
auto results = db.append_leaves(tree_id, leaves);

0 commit comments

Comments
 (0)