Skip to content

Commit b42a286

Browse files
committed
change mevshield dispatch calsses
1 parent a7a58af commit b42a286

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pallets/shield/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ pub mod pallet {
345345
Weight::from_parts(77_280_000, 0)
346346
.saturating_add(T::DbWeight::get().reads(4_u64))
347347
.saturating_add(T::DbWeight::get().writes(1_u64)),
348-
DispatchClass::Operational,
348+
DispatchClass::Normal,
349349
Pays::No
350350
))]
351351
#[allow(clippy::useless_conversion)]
@@ -430,7 +430,7 @@ pub mod pallet {
430430
Weight::from_parts(13_260_000, 0)
431431
.saturating_add(T::DbWeight::get().reads(1_u64))
432432
.saturating_add(T::DbWeight::get().writes(1_u64)),
433-
DispatchClass::Operational,
433+
DispatchClass::Normal,
434434
Pays::No
435435
))]
436436
pub fn mark_decryption_failed(
@@ -486,7 +486,7 @@ pub mod pallet {
486486
// Only allow locally-submitted / already-in-block txs.
487487
TransactionSource::Local | TransactionSource::InBlock => {
488488
ValidTransaction::with_tag_prefix("mev-shield-exec")
489-
.priority(u64::MAX)
489+
.priority(1u64)
490490
.longevity(64) // long because propagate(false)
491491
.and_provides(id) // dedupe by wrapper id
492492
.propagate(false) // CRITICAL: no gossip, stays on author node
@@ -499,7 +499,7 @@ pub mod pallet {
499499
match source {
500500
TransactionSource::Local | TransactionSource::InBlock => {
501501
ValidTransaction::with_tag_prefix("mev-shield-failed")
502-
.priority(u64::MAX)
502+
.priority(1u64)
503503
.longevity(64) // long because propagate(false)
504504
.and_provides(id) // dedupe by wrapper id
505505
.propagate(false) // CRITICAL: no gossip, stays on author node

0 commit comments

Comments
 (0)