tfchain icon indicating copy to clipboard operation
tfchain copied to clipboard

Pallet KV: scale the fee with the amount of bytes stored

Open DylanVerstraete opened this issue 1 year ago • 1 comments

Currently the weight is set to take into a account the cost of writing one entry to the DB. I think the better thing to do here is to scale the weight based on the size of the data stored. This will also make sure the fee is higher when the stored data size is high.

DylanVerstraete avatar Jul 24 '23 13:07 DylanVerstraete