forked from TrueCloudLab/neoneo-go
core: fix mempool error check in PoolTx
ErrAlreadyExists should be returned for ErrDup, not ErrConflict.
This commit is contained in:
parent
0e2784cd2c
commit
4c38fae54c
1 changed files with 1 additions and 1 deletions
|
@ -1381,7 +1381,7 @@ func (bc *Blockchain) PoolTx(t *transaction.Transaction) error {
|
|||
switch err {
|
||||
case mempool.ErrOOM:
|
||||
return ErrOOM
|
||||
case mempool.ErrConflict:
|
||||
case mempool.ErrDup:
|
||||
return fmt.Errorf("mempool: %w", ErrAlreadyExists)
|
||||
default:
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue