pimlicolabs / alto

A performant, reliable, and type-safe ERC-4337 Bundler written in Typescript
https://docs.pimlico.io/reference/bundler
GNU General Public License v3.0
152 stars 35 forks source link

Add mempool persistence logic using Redis #13

Open kristofgazso opened 1 year ago

kristofgazso commented 1 year ago

NOTE: Lower priority

Currently we don't persist incoming UserOperations in a mempool, and send them straight to be included on-chain. This is not a big problem right now because there isn't enough volume on-chain to justify waiting for multiple UserOperations until submission for inclusion, but this is required to be compliant with the spec.

Let's create a persistent mempool using Redis with ioredis

kanthgithub commented 8 months ago

can this be done via rocksdb where its key-value pair? thinking about redis vs rocksdb terms of horizontal scalability

plusminushalf commented 8 months ago

https://redis.io/docs/data-types/json/

kanthgithub commented 6 months ago

@mouseless-eth will be picking this up if this is still relevant change to be done i was trying to run bundler locally with anvil

defistar commented 5 months ago

@mouseless-eth is this still a priority item to be picked up? i have some time this & next week and can pick this up if this is needed