tfchain
tfchain copied to clipboard
Pallet KV: scale the fee with the amount of bytes stored
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.