1. 22 Aug, 2023 1 commit
  2. 21 Aug, 2023 2 commits
  3. 18 Aug, 2023 3 commits
    • Marius van der Wijden's avatar
      5976e584
    • Marius van der Wijden's avatar
    • Roberto Bayardo's avatar
      internal/ethapi: optimize & clean up EstimateGas (#27710) · 950ccddf
      Roberto Bayardo authored
      Optimizations:
      
      - Previously, if a transaction was reverting, EstimateGas would exhibit worst-case behavior and binary search up to the max gas limit (~40 state-clone + tx executions). This change allows EstimateGas to return after only a single unconstrained execution in this scenario.
      - Uses the gas used from the unconstrained execution to bias the remaining binary search towards the likely solution in a simple way that doesn't impact the worst case. For a typical contract-invoking transaction, this reduces the median number of state-clone+executions from 25 to 18 (28% reduction).
      
      Cleanup:
      
      - added & improved function + code comments
      - correct the EstimateGas documentation to clarify the gas limit determination is at latest block, not pending, if the blockNr is unspecified.
      950ccddf
  4. 17 Aug, 2023 2 commits
  5. 16 Aug, 2023 4 commits
  6. 15 Aug, 2023 4 commits
  7. 14 Aug, 2023 3 commits
    • ucwong's avatar
      go.mod: upgrade goja (#27899) · 509cd428
      ucwong authored
      509cd428
    • Delweng's avatar
      cmd/utils: restore support for txlookuplimit flag (#27917) · 68855216
      Delweng authored
      This fixes a regression where -txlookuplimit was not applied anymore.
      68855216
    • Felix Lange's avatar
      core/types: support for optional blob sidecar in BlobTx (#27841) · 2a6beb6a
      Felix Lange authored
      This PR removes the newly added txpool.Transaction wrapper type, and instead adds a way
      of keeping the blob sidecar within types.Transaction. It's better this way because most
      code in go-ethereum does not care about blob transactions, and probably never will. This
      will start mattering especially on the client side of RPC, where all APIs are based on
      types.Transaction. Users need to be able to use the same signing flows they already
      have.
      
      However, since blobs are only allowed in some places but not others, we will now need to
      add checks to avoid creating invalid blocks. I'm still trying to figure out the best place
      to do some of these. The way I have it currently is as follows:
      
      - In block validation (import), txs are verified not to have a blob sidecar.
      - In miner, we strip off the sidecar when committing the transaction into the block.
      - In TxPool validation, txs must have a sidecar to be added into the blobpool.
        - Note there is a special case here: when transactions are re-added because of a chain
          reorg, we cannot use the transactions gathered from the old chain blocks as-is,
          because they will be missing their blobs. This was previously handled by storing the
          blobs into the 'blobpool limbo'. The code has now changed to store the full
          transaction in the limbo instead, but it might be confusing for code readers why we're
          not simply adding the types.Transaction we already have.
      
      Code changes summary:
      
      - txpool.Transaction removed and all uses replaced by types.Transaction again
      - blobpool now stores types.Transaction instead of defining its own blobTx format for storage
      - the blobpool limbo now stores types.Transaction instead of storing only the blobs
      - checks to validate the presence/absence of the blob sidecar added in certain critical places
      2a6beb6a
  8. 12 Aug, 2023 1 commit
  9. 11 Aug, 2023 7 commits
  10. 10 Aug, 2023 7 commits
  11. 09 Aug, 2023 3 commits
  12. 08 Aug, 2023 2 commits
  13. 07 Aug, 2023 1 commit