Refactor the mempool error docs (#2963)
* Change the error messages * Refactor the error messages Co-authored-by: teor <teor@riseup.net> Co-authored-by: teor <teor@riseup.net> Co-authored-by: Alfredo Garcia <oxarbitrage@gmail.com>
This commit is contained in:
parent
3402c1d8a2
commit
8f04c9a243
|
|
@ -23,7 +23,7 @@ pub enum MempoolError {
|
||||||
///
|
///
|
||||||
/// Note that the mempool caches this error. See [`super::storage::Storage`]
|
/// Note that the mempool caches this error. See [`super::storage::Storage`]
|
||||||
/// for more details.
|
/// for more details.
|
||||||
#[error("mempool storage has a cached tip rejection for this exact transaction")]
|
#[error("the transaction will be rejected from the mempool until the next chain tip block")]
|
||||||
StorageExactTip(#[from] ExactTipRejectionError),
|
StorageExactTip(#[from] ExactTipRejectionError),
|
||||||
|
|
||||||
/// Transaction rejected based on its effects (spends, outputs, transaction
|
/// Transaction rejected based on its effects (spends, outputs, transaction
|
||||||
|
|
@ -33,9 +33,7 @@ pub enum MempoolError {
|
||||||
///
|
///
|
||||||
/// Note that the mempool caches this error. See [`super::storage::Storage`]
|
/// Note that the mempool caches this error. See [`super::storage::Storage`]
|
||||||
/// for more details.
|
/// for more details.
|
||||||
#[error(
|
#[error("any transaction with the same effects will be rejected from the mempool until the next chain tip block")]
|
||||||
"mempool storage has a cached tip rejection for any transaction with the same effects"
|
|
||||||
)]
|
|
||||||
StorageEffectsTip(#[from] SameEffectsTipRejectionError),
|
StorageEffectsTip(#[from] SameEffectsTipRejectionError),
|
||||||
|
|
||||||
/// Transaction rejected based on its effects (spends, outputs, transaction
|
/// Transaction rejected based on its effects (spends, outputs, transaction
|
||||||
|
|
@ -46,9 +44,7 @@ pub enum MempoolError {
|
||||||
///
|
///
|
||||||
/// Note that the mempool caches this error. See [`super::storage::Storage`]
|
/// Note that the mempool caches this error. See [`super::storage::Storage`]
|
||||||
/// for more details.
|
/// for more details.
|
||||||
#[error(
|
#[error("any transaction with the same effects will be rejected from the mempool until a chain reset")]
|
||||||
"mempool storage has a cached chain rejection for any transaction with the same effects"
|
|
||||||
)]
|
|
||||||
StorageEffectsChain(#[from] SameEffectsChainRejectionError),
|
StorageEffectsChain(#[from] SameEffectsChainRejectionError),
|
||||||
|
|
||||||
/// Transaction rejected because the mempool already contains another
|
/// Transaction rejected because the mempool already contains another
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue