You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After FuelLabs/fuel-vm#697, the allocation of the stack or heap may cause the copying of many bytes. The VM initialization should charge the user for the worst possible scenario where we will resize the heap/stack 26 times to be sure that new behaviour is not exploited by the attacker.
This strategy overcharges the user but improves the network's safety. Later, we can refund gas if the user doesn't initiate re-allocations(it will be a separate feature).
The text was updated successfully, but these errors were encountered:
Closes#1807
The PR updates benchmarks to work properly with new VM rules and fixes
the issue with non-optimal `InMemoryTransaction` behavior for the
`size_of_value` method.
Because of the new VM rules: the memory that we are accessing should be
initialized. The `cfe` opcode in the benchmarks expands the stack to
allocate the memory that will later be used by the instruction that we
are benchmarking.
### Before requesting review
- [x] I have reviewed the code myself
---------
Co-authored-by: Hannes Karppila <[email protected]>
Co-authored-by: Brandon Vrooman <[email protected]>
After FuelLabs/fuel-vm#697, the allocation of the stack or heap may cause the copying of many bytes. The VM initialization should charge the user for the worst possible scenario where we will resize the heap/stack 26 times to be sure that new behaviour is not exploited by the attacker.
This strategy overcharges the user but improves the network's safety. Later, we can refund gas if the user doesn't initiate re-allocations(it will be a separate feature).
The text was updated successfully, but these errors were encountered: