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 {
|
switch err {
|
||||||
case mempool.ErrOOM:
|
case mempool.ErrOOM:
|
||||||
return ErrOOM
|
return ErrOOM
|
||||||
case mempool.ErrConflict:
|
case mempool.ErrDup:
|
||||||
return fmt.Errorf("mempool: %w", ErrAlreadyExists)
|
return fmt.Errorf("mempool: %w", ErrAlreadyExists)
|
||||||
default:
|
default:
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue