aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

[framework][storage_gas] add free quota into storage_gas

Open lightmark opened this issue 2 years ago • 1 comments

Description

add free 1k to on-chain. Will add that to rust code later.

Test Plan

add ut


This change is Reviewable

lightmark avatar Nov 10 '22 23:11 lightmark

I think these belongs to the global gas schedule because:

  1. they are not changed per epoch, like the per epoch updating prices, so there's no concern writing a large struct from move frequently.
  2. the global schedule has support to add new parameters. I can imagine we might need free_items_to_write_per_txn etc.

2+: @vgao1996 's point of feature gating as well.

msmouse avatar Nov 12 '22 22:11 msmouse

close because of https://github.com/aptos-labs/aptos-core/pull/5566

lightmark avatar Nov 20 '22 05:11 lightmark