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
bff33033
Unverified
Commit
bff33033
authored
Oct 28, 2021
by
Marius van der Wijden
Committed by
GitHub
Oct 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: fixed stale comment in txlist (#23825)
parent
52c02ccb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tx_list.go
core/tx_list.go
+2
-2
No files found.
core/tx_list.go
View file @
bff33033
...
...
@@ -295,9 +295,9 @@ func (l *txList) Add(tx *types.Transaction, priceBump uint64) (bool, *types.Tran
thresholdFeeCap
:=
aFeeCap
.
Div
(
aFeeCap
,
b
)
thresholdTip
:=
aTip
.
Div
(
aTip
,
b
)
//
Have to ensure that either the new fee cap or tip is
higher than the
//
We have to ensure that both the new fee cap and tip are
higher than the
// old ones as well as checking the percentage threshold to ensure that
// this is accurate for low (Wei-level) gas price replacements
// this is accurate for low (Wei-level) gas price replacements
.
if
tx
.
GasFeeCapIntCmp
(
thresholdFeeCap
)
<
0
||
tx
.
GasTipCapIntCmp
(
thresholdTip
)
<
0
{
return
false
,
nil
}
...
...
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