rippled icon indicating copy to clipboard operation
rippled copied to clipboard

Implement fee scaling based on the size of the memos

Open a-noni-mousse opened this issue 3 years ago • 5 comments

A revision of #3007 to scale the fees for transactions with many memos which is csauing a spamming problem. It may be better to just change the coe to change by the size of the transaction instead which works for other expensive things too likea lot of paths.

a-noni-mousse avatar Jul 29 '22 19:07 a-noni-mousse

I would like to see some sort of Flag, or something that gets added to the response above and beyond simply bumping the fee. How does a legitimate dev know they may have tripped up on this?

There needs to be at least something say hey, you'r causing the fee's to rise.

shortthefomo avatar Aug 02 '22 00:08 shortthefomo

I would like to see some sort of Flag, or something that gets added to the response above and beyond simply bumping the fee. How does a legitimate dev know they may have tripped up on this?

There needs to be at least something say hey, you'r causing the fee's to rise.

I'm not quite sure I follow? The fee change here isn't dynamic based on load: that is, it increases the amount of the fee purely based on the size of the memo, so a developer would simply check if the corresponding amendment is activated and, if so, calculate the fee using the algorithm implemented in this pull requests.

nbougalis avatar Aug 09 '22 23:08 nbougalis

I'm not quite sure I follow? The fee change here isn't dynamic based on load: that is, it increases the amount of the fee purely based on the size of the memo, so a developer would simply check if the corresponding amendment is activated and, if so, calculate the fee using the algorithm implemented in this pull requests.

Apologies, I took for granted that there was a point at which it kicked in (exceeds limit). Fee is just dynamic end of story 👍🏻

shortthefomo avatar Aug 10 '22 04:08 shortthefomo

I'm not certain this requires an amendment? It would make coordination/communication easier, but in the end transactions with higher fees are still valid to every node that doesn't run this code and if enough validators run this code, transactions with lower fees than required by the code would just get rejected.

MarkusTeufelberger avatar Aug 10 '22 14:08 MarkusTeufelberger

I'm not certain this requires an amendment? It would make coordination/communication easier, but in the end transactions with higher fees are still valid to every node that doesn't run this code and if enough validators run this code, transactions with lower fees than required by the code would just get rejected.

As implemented, it does: it changes the code that calculates the minimum fee.

A non-amendment based implementation is possible, where servers could require higher local fees, but would accept transactions with lower fees if the network reached consensus about including such a transaction.

Personally, I'm fine with the amendment-based approach, because it makes it easier for everyone to calculate the minimum required fee, although it's hardly an "easy" thing to do, especially when faced with queue congestion/levels.

nbougalis avatar Aug 30 '22 00:08 nbougalis

@a-noni-mousse what are your latest thoughts on this change?

intelliot avatar Mar 20 '23 17:03 intelliot

@a-noni-mousse can you resolve the merge conflicts?

Otherwise, this PR may be closed due to inactivity. You can always open a new PR in the future, of course.

intelliot avatar Apr 24 '23 18:04 intelliot

@a-noni-mousse if merge conflicts are not resolved, this PR will be closed. But don't lose heart - you can always re-open it or open a new PR with the changes in the future :)

intelliot avatar Jul 18 '23 00:07 intelliot

Closing due to inactivity. Feel free to open a new PR with this change (rebased on the head of develop).

intelliot avatar Aug 09 '23 00:08 intelliot