Coder Social home page Coder Social logo

Mempool evicition about celestia-core HOT 4 CLOSED

celestiaorg avatar celestiaorg commented on August 15, 2024 1
Mempool evicition

from celestia-core.

Comments (4)

adlerjohn avatar adlerjohn commented on August 15, 2024 1

Here's how I think we can do this.

  1. A blob is accepted into the mempool. Tendermint doesn't interpret the blob. (no change)
  2. CheckTx takes in a blob and returns a list of transactions IDs. Each transaction ID is the hash of the non-witness data. Since each blob in the mempool could correspond to multiple transactions, we need to return a list here. (change)
  3. Blobs in the mempool are links to two IDs:
    1. Hash of the blob in its entirety. This is used at the p2p layer for unconfirmed txs, i.e. before accepting a new tx, check against the blob hash, (unchanged)
    2. List of transactions IDs. This is used for evicting confirmed txs. When receiving a new block, evict any txs from the mempool that are included in the block based on transactions ID.(change)
  4. In order to evict txs that are seen in a block, DeliverTx should return a since transaction ID.

from celestia-core.

liamsi avatar liamsi commented on August 15, 2024

related: tendermint/spec#201
and tendermint/tendermint#7917

from celestia-core.

liamsi avatar liamsi commented on August 15, 2024

A first, non-invasive approach (at least for the tendermint side) would be to use "re-check" for evicting the mempool:

https://github.com/tendermint/tendermint/blob/f9c54d2710d7a83b2d40fd96f973a0ffba75e740/mempool/clist_mempool.go#L639-L656
and
https://github.com/tendermint/tendermint/blob/f9c54d2710d7a83b2d40fd96f973a0ffba75e740/mempool/clist_mempool.go#L464-L485

This means that the app needs to track the (mempool) Tx, that it processed and "accepted" in the preprocess step.

from celestia-core.

liamsi avatar liamsi commented on August 15, 2024

As per the above this isn't something urgent and IMO we can close this for now.

from celestia-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.