mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-01-05 19:35:48 +00:00
core: fix policy-enforcing network fee check
0.001 should be added to the 'extra' value as per https://neo.org/blog/details/4148
This commit is contained in:
parent
c4d287f326
commit
e14ba6c855
1 changed files with 1 additions and 1 deletions
|
@ -2003,7 +2003,7 @@ func (bc *Blockchain) PoolTx(t *transaction.Transaction) error {
|
|||
netFee := bc.NetworkFee(t)
|
||||
if maxFree != 0 && txSize > maxFree {
|
||||
if bc.IsLowPriority(netFee) ||
|
||||
netFee < util.Fixed8FromFloat(bc.config.FeePerExtraByte)*util.Fixed8(txSize-maxFree) {
|
||||
netFee < (util.Fixed8FromFloat(bc.config.LowPriorityThreshold)+util.Fixed8FromFloat(bc.config.FeePerExtraByte)*util.Fixed8(txSize-maxFree)) {
|
||||
return ErrPolicy
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue