Skip to content

Commit

Permalink
hotfix(batcher): rm MIN_FEE_PER_PROOF check in batcher (#1308)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatStiles authored Oct 24, 2024
1 parent 5f71bac commit 1598b38
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions batcher/aligned-batcher/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,16 +467,6 @@ impl Batcher {
return Ok(());
}

// Nonce and max fee verification
let max_fee = nonced_verification_data.max_fee;
if max_fee < U256::from(MIN_FEE_PER_PROOF) {
error!("The max fee signed in the message is less than the accepted minimum fee to be included in the batch.");
send_message(ws_conn_sink.clone(), ValidityResponseMessage::InvalidMaxFee).await;
return Ok(());
}

// Check that we had a user state entry for this user and insert it if not.

// We aquire the lock first only to query if the user is already present and the lock is dropped.
// If it was not present, then the user nonce is queried to the Aligned contract.
// Lastly, we get a lock of the batch state again and insert the user state if it was still missing.
Expand Down

0 comments on commit 1598b38

Please sign in to comment.