logos-co / nomos-node

Nomos blockchain node
46 stars 15 forks source link

Mempool Disccusion #95

Open danielSanchezQ opened 1 year ago

danielSanchezQ commented 1 year ago

I'm creating this to discuss about the current mempool implementation.

We know that at some point we would want to keep the transactions stored in some kind of decentralized storage (project CODEX). For not we are making the mempool hold the pending txs which makes sense, but for the committed ones we could probably move them to some storage that can be later replaced by the original idea.

zeegomo commented 1 year ago

If we decide that blocks only contain transactions hashes, then we need a way to retrieve transactions. It's not too different from how a node that joins the network later has to download blocks actually.

I think it could be valuable to have committed transactions in a coldish storage and conflate storage of pending transactions and transactions in blocks not yet committed, as we might have to access both

danielSanchezQ commented 1 year ago

If we decide that blocks only contain transactions hashes, then we need a way to retrieve transactions. It's not too different from how a node that joins the network later has to download blocks actually.

I think it could be valuable to have committed transactions in a coldish storage and conflate storage of pending transactions and transactions in blocks not yet committed, as we might have to access both

That way we make the mempool work only over the transactions ids right? So if retrieving a transaction it should be from this storage?

alvatar commented 1 year ago

The mempool is subject to further research at this point. We cannot make an informed decision yet. For now, the simplest mempool will do, and then we will work on this from a research perspective. To clarify a few points: