Skip to content

upstream: pick bug fix from latest geth#2926

Merged
zzzckck merged 5 commits intobnb-chain:developfrom
buddh0:pick-geth-bugs-fix
Feb 28, 2025
Merged

upstream: pick bug fix from latest geth#2926
zzzckck merged 5 commits intobnb-chain:developfrom
buddh0:pick-geth-bugs-fix

Conversation

@buddh0
Copy link
Contributor

@buddh0 buddh0 commented Feb 27, 2025

Description

upstream: pick bug fix from latest geth

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

@buddh0 buddh0 changed the base branch from master to develop February 27, 2025 09:58
MariusVanDerWijden and others added 5 commits February 27, 2025 18:00
This PR adds a test that makes sure that a node can send multiple
transactions again once a authorization is removed
Fixes an incorrect encoding of recursive bytes types.
closes ethereum/go-ethereum#30979
In this PR, several improvements have been made:

Authorization-related validations have been moved to legacyPool.
Previously, these checks were part of the standard validation procedure,
which applies common validations across different pools. Since these
checks are specific to SetCode transactions, relocating them to
legacyPool
is a more reasonable choice.

Additionally, authorization conflict checks are now performed regardless
of whether the transaction is a replacement or not.

---------

Co-authored-by: lightclient <lightclient@protonmail.com>
This change divides BlobGasUsed by MaxBlobGasPerBlock instead of
MaxBlobsPerBlock. Dividing by MaxBlobsPerBlock
meant the blobGasUsedRatio was an incorrect large number. This bug was
introduced by a typo
[here](ethereum/go-ethereum@e6f3ce7#diff-3357b2399699d7cf954c543cbfb02ff442eb24491e55f5e813e3cc85829b3e8dR110)

Fixes ethereum/go-ethereum#31245
when remove an non-SetCodeTxType transaction, error logs flood
```
t=2025-02-25T03:11:06+0000 lvl=error msg="Authority with untracked tx" addr=0xD5bf9221fCB1C31Cd1EE477a60c148d40dD63DC1 hash=0x626fdf205a5b1619deb2f9e51fed567353f80acbd522265b455daa0821c571d9
```

in this PR, only try to removeAuthorities for txs with SetCodeTxType

in addition, the performance of removeAuthorities improved a lot,
because no need range all `t.auths` now.

---------

Co-authored-by: lightclient <lightclient@protonmail.com>
@zzzckck zzzckck merged commit 70d0e66 into bnb-chain:develop Feb 28, 2025
6 of 7 checks passed
@buddh0 buddh0 deleted the pick-geth-bugs-fix branch March 3, 2025 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

Comments