Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
0f4b21fe
Unverified
Commit
0f4b21fe
authored
Jul 27, 2023
by
Péter Szilágyi
Committed by
GitHub
Jul 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/txpool/blobpool: fix a merge conflict from a package rename (#27790)
parent
393d4db1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
blobpool.go
core/txpool/blobpool/blobpool.go
+3
-2
blobpool_test.go
core/txpool/blobpool/blobpool_test.go
+2
-1
No files found.
core/txpool/blobpool/blobpool.go
View file @
0f4b21fe
...
...
@@ -30,6 +30,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/consensus/misc"
"github.com/ethereum/go-ethereum/consensus/misc/eip4844"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/txpool"
...
...
@@ -402,7 +403,7 @@ func (p *BlobPool) Init(gasTip *big.Int, head *types.Header, reserve txpool.Addr
blobfee
=
uint256
.
MustFromBig
(
big
.
NewInt
(
params
.
BlobTxMinDataGasprice
))
)
if
p
.
head
.
ExcessDataGas
!=
nil
{
blobfee
=
uint256
.
MustFromBig
(
misc
.
CalcBlobFee
(
*
p
.
head
.
ExcessDataGas
))
blobfee
=
uint256
.
MustFromBig
(
eip4844
.
CalcBlobFee
(
*
p
.
head
.
ExcessDataGas
))
}
p
.
evict
=
newPriceHeap
(
basefee
,
blobfee
,
&
p
.
index
)
...
...
@@ -775,7 +776,7 @@ func (p *BlobPool) Reset(oldHead, newHead *types.Header) {
blobfee
=
uint256
.
MustFromBig
(
big
.
NewInt
(
params
.
BlobTxMinDataGasprice
))
)
if
newHead
.
ExcessDataGas
!=
nil
{
blobfee
=
uint256
.
MustFromBig
(
misc
.
CalcBlobFee
(
*
newHead
.
ExcessDataGas
))
blobfee
=
uint256
.
MustFromBig
(
eip4844
.
CalcBlobFee
(
*
newHead
.
ExcessDataGas
))
}
p
.
evict
.
reinit
(
basefee
,
blobfee
,
false
)
...
...
core/txpool/blobpool/blobpool_test.go
View file @
0f4b21fe
...
...
@@ -31,6 +31,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/consensus/misc"
"github.com/ethereum/go-ethereum/consensus/misc/eip4844"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/rawdb"
"github.com/ethereum/go-ethereum/core/state"
...
...
@@ -130,7 +131,7 @@ func (bc *testBlockChain) CurrentBlock() *types.Header {
mid
:=
new
(
big
.
Int
)
.
Add
(
lo
,
hi
)
mid
.
Div
(
mid
,
big
.
NewInt
(
2
))
if
misc
.
CalcBlobFee
(
mid
.
Uint64
())
.
Cmp
(
bc
.
blobfee
.
ToBig
())
>
0
{
if
eip4844
.
CalcBlobFee
(
mid
.
Uint64
())
.
Cmp
(
bc
.
blobfee
.
ToBig
())
>
0
{
hi
=
mid
}
else
{
lo
=
mid
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment