Replies: 3 comments 5 replies
|
If I recall correctly, the basic PVM tests have a lot of this case as well |
4 replies
|
@0xjunha indeed according to A.8 the gas is left untouched. Begin of section A.1
Otherwise no gas is charged if the very first instruction is one that triggers a trap for memory access. |
1 reply
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
It seems these traces have some PVM invocations with
PanicorPageFaultexit reasons forΨ1due to invalid memory read/write.According to
accumulate_gas_usedfield in statistics state of the traces, it seems those cases charge gas for the failing instructions (which attempted invalid memory accesses), whereas GP states they should not mutate VM state at all, immediately exiting withPanicorPageFault.GP reference: https://graypaper.fluffylabs.dev/#/38c4e62/251901251901?v=0.7.0
If this was ambiguous in v0.7.0, it is clarified in v0.7.2:
https://graypaper.fluffylabs.dev/#/ab2cdbd/256c01256c01?v=0.7.2
All reactions