GithubHelp home page GithubHelp logo

Comments (1)

gastonponti avatar gastonponti commented on June 6, 2024

Hi @cp0k!
TL;DR; The PR #1982 should fix this issue.

The problem is in the tracer.

We use a Block Context (Part of the Espresso HF) at the beginning of the block, to retrieve the rates of all the stables.
That rate is the one used to order and validate the txs that are going to be part of the block. Using this context allow us to avoid reshuffling all the mempool after each tx apply because the applied tx could change the rate of a stable (this is explained in the Espresso HF page).
In this case, that block, has a tx that changes the rate of the cUSD, and the last tx that is trying to execute, uses the cUSD as the currencyFee, and the new rate is bigger that the fee of that transaction.
This happens because the tracer was generating a Block Context after every tx execution, and not sharing the same context created at the beginning of the block.

The PR #1987 should fix this error.

from celo-blockchain.

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.