Skip to content

fix: in avm cpp sim put counters (nullifier, notehash, msg) into a stack to be rolled back on error#16665

Merged
dbanks12 merged 1 commit intonextfrom
db/counterstack
Sep 1, 2025
Merged

fix: in avm cpp sim put counters (nullifier, notehash, msg) into a stack to be rolled back on error#16665
dbanks12 merged 1 commit intonextfrom
db/counterstack

Conversation

@dbanks12
Copy link
Copy Markdown
Contributor

@dbanks12 dbanks12 commented Aug 29, 2025

AVM cpp simulator needs to rollback counters on error/revert. This PR introduces a stack of counters in the concrete DB.

Copy link
Copy Markdown
Contributor

@fcarreiro fcarreiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment thread barretenberg/cpp/src/barretenberg/vm2/simulation/concrete_dbs.hpp Outdated
Comment thread barretenberg/cpp/src/barretenberg/vm2/simulation/concrete_dbs.hpp Outdated
@dbanks12 dbanks12 force-pushed the db/misc-fixes-sideeffects branch from 3c874e4 to 953f475 Compare September 1, 2025 17:53
@dbanks12 dbanks12 force-pushed the db/counterstack branch 2 times, most recently from 058fb20 to 768e417 Compare September 1, 2025 18:02
Base automatically changed from db/misc-fixes-sideeffects to next September 1, 2025 19:23
@dbanks12 dbanks12 enabled auto-merge September 1, 2025 19:36
@dbanks12 dbanks12 added this pull request to the merge queue Sep 1, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Sep 1, 2025
@dbanks12 dbanks12 added this pull request to the merge queue Sep 1, 2025
Merged via the queue into next with commit 1887d17 Sep 1, 2025
15 checks passed
@dbanks12 dbanks12 deleted the db/counterstack branch September 1, 2025 22:55
ludamad pushed a commit that referenced this pull request Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants