ValidateTRC21Tx is not validate correctly as its comment 'we both accept tx with balance = 0 and fee = 0'.
The current checking only get the key and check if that key is zero or not. With this checking, it allows any value of minFee to pass this validation. So, to make it correct we need to check if the statedb at that key instead.
ValidateTRC21Tx is not validate correctly as its comment 'we both accept tx with balance = 0 and fee = 0'. The current checking only get the key and check if that key is zero or not. With this checking, it allows any value of
minFee
to pass this validation. So, to make it correct we need to check if thestatedb
at that key instead.