Skip to content

Commit 8156c90

Browse files
committed
rusk: change EST to not discard not ready moonlight txs
1 parent 40d5aab commit 8156c90

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

rusk/src/lib/node/rusk.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use std::sync::{mpsc, Arc, LazyLock};
99
use std::time::{Duration, Instant};
1010
use std::{fs, io};
1111

12+
use execution_core::transfer::PANIC_NONCE_NOT_READY;
1213
use parking_lot::RwLock;
1314
use sha3::{Digest, Sha3_256};
1415
use tokio::task;
@@ -180,6 +181,16 @@ impl Rusk {
180181
err,
181182
});
182183
}
184+
Err(PiecrustError::Panic(val))
185+
if val == PANIC_NONCE_NOT_READY =>
186+
{
187+
// If the transaction panic due to a not yet valid nonce,
188+
// we should not discard the transactions since it can be
189+
// included in future.
190+
191+
// TODO: Try to process the transaction as soon as the
192+
// nonce is unlocked
193+
}
183194
Err(e) => {
184195
info!("discard tx {tx_id} due to {e:?}");
185196
// An unspendable transaction should be discarded

0 commit comments

Comments
 (0)