chore(txpool): add AlreadyImported variant (#2009)

This commit is contained in:
Matthias Seitz
2023-03-28 19:00:30 +02:00
committed by GitHub
parent cf2a2dbf97
commit 3810548bd7
4 changed files with 33 additions and 5 deletions

View File

@ -346,6 +346,7 @@ impl From<PoolError> for RpcPoolError {
PoolError::DiscardedOnInsert(_) => RpcPoolError::TxPoolOverflow,
PoolError::InvalidTransaction(_, err) => err.into(),
PoolError::Other(_, err) => RpcPoolError::Other(err),
PoolError::AlreadyImported(_) => RpcPoolError::AlreadyKnown,
}
}
}