Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilyjjo committed Oct 30, 2024
1 parent 512a122 commit 635cfe0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 137 deletions.
132 changes: 0 additions & 132 deletions crates/astria-sequencer/app-genesis-state.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,7 @@ mod tests {
assert_eq!(
res,
Err(InsertionError::NonceTaken),
"nonce replacement for parked should return false"
"nonce replacement for pending should fail"
);

// the transaction should not have been replaced
Expand Down
5 changes: 1 addition & 4 deletions crates/astria-sequencer/src/service/mempool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ impl IntoCheckTxResponse for RemovalReason {
RemovalReason::NonceReplacement(replacing_hash) => response::CheckTx {
code: Code::Err(AbciErrorCode::NONCE_REPLACEMENT.value()),
info: AbciErrorCode::NONCE_REPLACEMENT.to_string(),
log: format!(
"transaction replaced by a parked transaction with a lower nonce: \
{replacing_hash:#?}"
),
log: format!("nonce replacement;transaction replaced with: {replacing_hash:#?}"),
..response::CheckTx::default()
},
}
Expand Down

0 comments on commit 635cfe0

Please sign in to comment.