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
d3e3a460
Unverified
Commit
d3e3a460
authored
Aug 04, 2021
by
Patrick O'Grady
Committed by
GitHub
Aug 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/rawdb: fix logs to print block number, not address (#23328)
parent
28ba686c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
accessors_indexes.go
core/rawdb/accessors_indexes.go
+3
-3
No files found.
core/rawdb/accessors_indexes.go
View file @
d3e3a460
...
...
@@ -106,7 +106,7 @@ func ReadTransaction(db ethdb.Reader, hash common.Hash) (*types.Transaction, com
}
body
:=
ReadBody
(
db
,
blockHash
,
*
blockNumber
)
if
body
==
nil
{
log
.
Error
(
"Transaction referenced missing"
,
"number"
,
blockNumber
,
"hash"
,
blockHash
)
log
.
Error
(
"Transaction referenced missing"
,
"number"
,
*
blockNumber
,
"hash"
,
blockHash
)
return
nil
,
common
.
Hash
{},
0
,
0
}
for
txIndex
,
tx
:=
range
body
.
Transactions
{
...
...
@@ -114,7 +114,7 @@ func ReadTransaction(db ethdb.Reader, hash common.Hash) (*types.Transaction, com
return
tx
,
blockHash
,
*
blockNumber
,
uint64
(
txIndex
)
}
}
log
.
Error
(
"Transaction not found"
,
"number"
,
blockNumber
,
"hash"
,
blockHash
,
"txhash"
,
hash
)
log
.
Error
(
"Transaction not found"
,
"number"
,
*
blockNumber
,
"hash"
,
blockHash
,
"txhash"
,
hash
)
return
nil
,
common
.
Hash
{},
0
,
0
}
...
...
@@ -137,7 +137,7 @@ func ReadReceipt(db ethdb.Reader, hash common.Hash, config *params.ChainConfig)
return
receipt
,
blockHash
,
*
blockNumber
,
uint64
(
receiptIndex
)
}
}
log
.
Error
(
"Receipt not found"
,
"number"
,
blockNumber
,
"hash"
,
blockHash
,
"txhash"
,
hash
)
log
.
Error
(
"Receipt not found"
,
"number"
,
*
blockNumber
,
"hash"
,
blockHash
,
"txhash"
,
hash
)
return
nil
,
common
.
Hash
{},
0
,
0
}
...
...
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