mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-05-25 18:21:36 +08:00
feat: TemporarilyBlacklisted error variant for mempool rejection
This commit is contained in:
@@ -157,6 +157,7 @@ pub enum MemPoolRejection {
|
||||
TransferAmountMustBePositive,
|
||||
DBError(db_error),
|
||||
EstimatorError(EstimatorError),
|
||||
TemporarilyBlacklisted,
|
||||
Other(String),
|
||||
}
|
||||
|
||||
@@ -304,6 +305,7 @@ impl MemPoolRejection {
|
||||
"ServerFailureDatabase",
|
||||
Some(json!({"message": e.to_string()})),
|
||||
),
|
||||
TemporarilyBlacklisted => ("TemporarilyBlacklisted", None),
|
||||
Other(s) => ("ServerFailureOther", Some(json!({ "message": s }))),
|
||||
};
|
||||
let mut result = json!({
|
||||
|
||||
Reference in New Issue
Block a user