@@ -150,16 +150,16 @@ func (r *Relayer) MapUserOpHashToClientID() gin.HandlerFunc {
150
150
}
151
151
152
152
// SendUserOperation returns a BatchHandler that is used by the Bundler to send batches in a regular EOA
153
- // transaction. It uses the mapping of request ID to client ID created by the Gin middleware in order to
153
+ // transaction. It uses the mapping of userOpHash to client ID created by the Gin middleware in order to
154
154
// mitigate DoS attacks.
155
155
func (r * Relayer ) SendUserOperation () modules.BatchHandlerFunc {
156
156
return func (ctx * modules.BatchHandlerCtx ) error {
157
157
// TODO: Increment badger nextTxnTs to read latest data from MapUserOpHashToClientID.
158
- time .Sleep (time .Millisecond )
158
+ time .Sleep (2 * time .Millisecond )
159
159
160
160
var del []string
161
161
err := r .db .Update (func (txn * badger.Txn ) error {
162
- // Delete any request ID entries from dropped userOps.
162
+ // Delete any userOpHash entries from dropped userOps.
163
163
if len (ctx .PendingRemoval ) > 0 {
164
164
hashes := getUserOpHashesFromOps (ctx .EntryPoint , ctx .ChainID , ctx .PendingRemoval ... )
165
165
if err := removeUserOpHashEntries (txn , hashes ... ); err != nil {
@@ -231,7 +231,7 @@ func (r *Relayer) SendUserOperation() modules.BatchHandlerFunc {
231
231
return err
232
232
}
233
233
234
- // Delete remaining request ID entries from submitted userOps.
234
+ // Delete remaining userOpHash entries from submitted userOps.
235
235
// Perform update in new txn to avoid db conflicts.
236
236
err = r .db .Update (func (txn * badger.Txn ) error {
237
237
return removeUserOpHashEntries (txn , del ... )
0 commit comments