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
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Update lisk-chain Transaction class validate function to accept minFeePerByte and baseFees as below and check minFee requirement there (or create validateTransaction function in chain instance, which maybe more feasible)
validate( {minFeePerByte: number, baseFees: [] })
Also add calculateMinFee = (txSize: number, minFeePerByte: number, baseFees: []) => bigint function in lisk-chain/utils/transaction.ts
Remove minFee validation from token module
Update usage of transaction.validate() in lisk-framework/processor
Expected behavior
When submitting a tx with insufficient fee,
Insufficient transaction fee. Minimum required fee is: ${minimumRequiredFee.toString()}
should be given.Actual behavior
Gets error:
Rejecting transaction due to failed minimum entrance fee priority requirement
from txPool.This is due to txPool check happening before token module check.
Steps to reproduce
Send tx with below min fee requirement.
Which version(s) does this affect? (Environment, OS, etc...)
5.0-
The text was updated successfully, but these errors were encountered: