BuildOnViction / victionchain

The Efficient Blockchain Powered By Proof Of Stake Voting Consensus
https://viction.xyz
GNU Lesser General Public License v3.0
168 stars 85 forks source link

Fix validation of trc21 tx #393

Closed lookharm closed 11 months ago

lookharm commented 1 year ago

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.