Giter Site home page Giter Site logo

Comments (2)

timbeiko avatar timbeiko commented on June 18, 2024

Related comments from an old issue:

Currently we treat the "pending" argument the same as the "latest" argument, which is to say our pending state is our latest state with no alterations. We should investigate what it would take to alter this.

If we are mining, then the pending state would be our candidate block we are mining or preparing for signing. This may not always be available in the cases were the consensus algorithm has a round-robin type setup where we only mine on turn. But those also tend to have fallbacks for when a producer fails to produce a block, and we need to keep our state handy.

If we are not mining then we should consider creating a temporary state including as many of the transactions in the pending pool as are reasonable. This could be tricky because the pool could contain contradictory or mutually exclusive transactions, such as duplicate nonce or TXes that drain a common resource. And how much CPU time should be spent producing these transactions.

Finally we need to plumb this data into the JsonRpc classes, likely through BlockChainQueries.

from besu.

timbeiko avatar timbeiko commented on June 18, 2024

I don't think this is relevant given that Besu is unlikely to add pending block support. If that's not the case, feel free to copy/paste this into a new issue. cc: @sajz

from besu.

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.