-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: track side effects in public #5129
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
99f3ff8
test: test private+public notes in same tx
alexghr e7632da
feat: add side effect counter start to inputs
alexghr 1116e1a
feat: add start side effect to public inputs
alexghr 819aa7f
refactor: rename call_context.start_side_effect_counter
alexghr 46c5fb1
feat: public function call counter on context
alexghr 4d10f48
refactor: enqueued -> plain side effect counter
alexghr 54ed028
refactor: last side effect counter
alexghr 92b8402
feat: add start/end counters to contexts
alexghr 3b9f8f3
test: expand private fee tests
alexghr 2003b53
test: update hash values
alexghr 89cf9e2
refactor: call_public_function
alexghr 19bdfce
test: fix tests
alexghr 9290b1a
test: lastSideEffectCounter
alexghr c0a0965
test: recombine
alexghr 6331507
test: fix unit tests
alexghr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did we need to add this here instead of continuing to use the one in
CallContext
? I'm struggling a bit with how they are different, and why the one inCallContext
got renamed to justside_effect_counter
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LeilaWang came with the suggestion to remove it from
CallContext
entirely, which I've attempted to do in #5177The value in
call_context
is either thestart_side_effect_counter
for private calls and public calls in public execution, while it is theenqueued_side_effect_counter
for enqueued public calls.The real
start_side_effect_counter
is the one returned bycontext.finish()
and for enqueued calls it will be different than what's incall_context
(I enqueue it at 5 but run the function at 20). Because of the hashing that goes on in the kernel I can't modifycall_context.side_effect_counter
for enqueued calls.In #5177 we remove
call_context.side_effect_counter
and rely on public inputs.