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
Currently, the write fees per kb is a straight line that depends on current bucketlist size. When the slope of this line is steep, then fees can drop significantly lower when bucketlist size drops. We also have a target bucketlist size after which fees instantly jump by 1000 times.
What would you like to see?
Evaluate if having an exponential curve would solve these two problems.
For example,
y = b ^ x + k
where, y = write fee per 1 kb
b = some base (we could start with natural base e which is 2.717828)
x = current bucketlist size
k = some constant
Here is a chart on how this would look like,
The text was updated successfully, but these errors were encountered:
An exponential curve was something we actually considered before (even for the second part, passed the bucketListTargetSizeBytes as mentioned in the CAP), but in both cases, the "back pressure" from fees increasing just kicks in too slowly: from your chart you can see that most of the growth is happening when the ledger is getting very close to full.
One thought I have is that if we are going to revisit the fees more often, then in an exponential curve we can have the network settings such that current bucketlist size is 1 (or 2) GB away from when fees start to drastically increase. We then constantly adjust network settings and shift the curve as needed with bucketlist size increases.
when you "zoom in" on the last X bytes, exponential curve always have that property I mentioned above that price does not grow fast enough until it's too late -- one of the things we could consider is making MINIMUM_WRITE_FEE_PER_1KB a setting.
The thing to keep in mind is that the reason there is an explicit bucketListTargetSizeBytes is that this allows to reason about minimum hardware specs to run nodes, so whatever we do has to be parametrized around that.
What problem does your feature solve?
Currently, the write fees per kb is a straight line that depends on current bucketlist size. When the slope of this line is steep, then fees can drop significantly lower when bucketlist size drops. We also have a target bucketlist size after which fees instantly jump by 1000 times.
What would you like to see?
Evaluate if having an exponential curve would solve these two problems.
For example,
Here is a chart on how this would look like,
![Screenshot 2024-03-14 at 10 30 41 AM](https://private-user-images.githubusercontent.com/127880479/312939344-1001bf1f-5878-4412-b33f-56da33f81ae1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4MTE3NjIsIm5iZiI6MTcyNDgxMTQ2MiwicGF0aCI6Ii8xMjc4ODA0NzkvMzEyOTM5MzQ0LTEwMDFiZjFmLTU4NzgtNDQxMi1iMzNmLTU2ZGEzM2Y4MWFlMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyOFQwMjE3NDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05MjcwMWVhNDhkZGVhYjcwZmM3NDE3NzEwYjAzNGUyM2QxZGZmNjA4ZWE5NTZhMTY1NDJlM2M3YmFjNzQ1YjcyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.M6CDGZTqATyOai0_mcVsSb9nqE0uAFPWg1e53Uk4nPI)
The text was updated successfully, but these errors were encountered: