mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Extensively test transactions
This commit is contained in:
@@ -96,6 +96,7 @@ pub(crate) fn verify_transaction<T: Transaction>(
|
||||
}
|
||||
TransactionKind::Unsigned => {}
|
||||
TransactionKind::Signed(Signed { signer, nonce, signature }) => {
|
||||
// TODO: Use presence as a whitelist, erroring on lack of
|
||||
if next_nonces.get(&signer).cloned().unwrap_or(0) != nonce {
|
||||
Err(TransactionError::Temporal)?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user