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
As I understand, transactions in the mempool are ordered according to absolute fee value. The minimum fee for longer transactions (in bytes) or transactions of special types (like ChannelForceProgressTx) is higher. It means that these transactions would be mined firstly, e.g. simple transactions need fees higher than required for complex transactions to overcome them. Which is not obvious.
I propose to order transactions in mempool by the transaction fee divided by the minimum fee for this transaction. This way a slight fee increase would make tx to be mined earlier than all other transactions that use the minimum fee. Also, the sophisticated way to calculate min fee would stay involved after the blockchain load would make users increase fees. Currently, in this case, the current-demand-fee would be the same for transactions regardless of their type and length.
The text was updated successfully, but these errors were encountered:
I recalled that fee is a gas * gas price, so we can divide the fee by gas and get a gas price to sort by.
Probably -aetx:deep_fee(Tx), -int_gas_price(Tx) can be replaced with just -<gas price>.
aeternity/apps/aecore/src/aec_tx_pool.erl
Lines 736 to 747 in 5a51eec
As I understand, transactions in the mempool are ordered according to absolute fee value. The minimum fee for longer transactions (in bytes) or transactions of special types (like ChannelForceProgressTx) is higher. It means that these transactions would be mined firstly, e.g. simple transactions need fees higher than required for complex transactions to overcome them. Which is not obvious.
I propose to order transactions in mempool by the transaction fee divided by the minimum fee for this transaction. This way a slight fee increase would make tx to be mined earlier than all other transactions that use the minimum fee. Also, the sophisticated way to calculate min fee would stay involved after the blockchain load would make users increase fees. Currently, in this case, the current-demand-fee would be the same for transactions regardless of their type and length.
The text was updated successfully, but these errors were encountered: