Skip to content

Commit b04ce50

Browse files
committed
remove: replacement_message_received message
1 parent 413d3cd commit b04ce50

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

batcher/aligned-batcher/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,6 @@ impl Batcher {
695695
"Replacement entry is valid, incrementing fee for sender: {:?}, nonce: {:?}, max_fee: {:?}",
696696
replacement_entry.sender, replacement_entry.nonced_verification_data.nonce, replacement_max_fee
697697
);
698-
send_message(
699-
ws_conn_sink.clone(),
700-
ResponseMessage::ReplacementMessageReceived,
701-
).await;
702698

703699
// remove the old entry and insert the new one
704700
// note that the entries are considered equal for the priority queue

batcher/aligned-sdk/src/communication/messaging.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,6 @@ async fn process_batch_inclusion_data(
134134
verification_data_commitment,
135135
);
136136
}
137-
Ok(ResponseMessage::ReplacementMessageReceived) => {
138-
// This message is not processed, it is only used to signal the client that the replacement message was received by the batcher.
139-
// This is because the sender expects to receive the same amount of messages as it has sent.
140-
}
141137
Ok(ResponseMessage::InvalidNonce) => {
142138
error!("Batcher responded with invalid nonce");
143139
return Err(SubmitError::InvalidNonce);

batcher/aligned-sdk/src/core/types.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ pub enum ResponseMessage {
367367
AddToBatchError,
368368
EthRpcError,
369369
InvalidPaymentServiceAddress(Address, Address),
370-
ReplacementMessageReceived,
371370
}
372371

373372
#[derive(Debug, Clone, Copy)]

0 commit comments

Comments
 (0)