Open kustrun opened 1 month ago
does it require a hard fork ?
No, I don't believe so. It only affects wheter a transaction enters a mempool or not.
Since l1 fees < l2 fees
it could happen that some transactions were rejected from entering the mempool. If a user then tops up the account balance, the transaction goes through. This is the worst case I could think of.
@tynes When you have a moment, could you please review this PR? I believe it's affecting the UX, as some of the transactions could be falsely rejected when entering the mempool.
Description
Previously,
l.totalcost
was calculated incorrectly. The transactioncost
was added twice, and thel1Cost
was left out.This PR fixes the sum calculation so that it is correctly calculated as
tx.Cost() + l1Cost
.