fuel-core
fuel-core copied to clipboard
Charge transaction for fields that slow down block production
Blocked
This issue is better to do after some results in the issues below:
https://github.com/FuelLabs/fuel-core/issues/1387 https://github.com/FuelLabs/fuel-core/issues/1402
However it is still possible to do an analytic analysis of the code and guess on potential issues.
Overview
While some fields slow down transaction verification, other fields may slow down the block production. Maybe inserting giant witnesses into the database is slow, or sharing massive blocks/transactions slowdown the TPS of the network, or moving massive objects in memory is a slow operation, etc.
Solution
Start to charge users for fields that slow down production time. Mostly, it means including the execution cost into min_fee
.
Note
That issue requires some research first or results from linked issues.