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
5f92606b
Commit
5f92606b
authored
Mar 14, 2016
by
Jeffrey Wilcke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth/api: added root to the receipts
parent
3601320c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
api.go
eth/api.go
+3
-0
No files found.
eth/api.go
View file @
5f92606b
...
...
@@ -979,6 +979,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionReceipt(txHash common.Hash) (ma
}
fields
:=
map
[
string
]
interface
{}{
"root"
:
common
.
Bytes2Hex
(
receipt
.
PostState
),
"blockHash"
:
txBlock
,
"blockNumber"
:
rpc
.
NewHexNumber
(
blockIndex
),
"transactionHash"
:
txHash
,
...
...
@@ -1637,6 +1638,7 @@ type structLogRes struct {
Op
string
`json:"op"`
Gas
*
big
.
Int
`json:"gas"`
GasCost
*
big
.
Int
`json:"gasCost"`
Depth
int
`json:"depth"`
Error
error
`json:"error"`
Stack
[]
string
`json:"stack"`
Memory
[]
string
`json:"memory"`
...
...
@@ -1661,6 +1663,7 @@ func formatLogs(structLogs []vm.StructLog) []structLogRes {
Op
:
trace
.
Op
.
String
(),
Gas
:
trace
.
Gas
,
GasCost
:
trace
.
GasCost
,
Depth
:
trace
.
Depth
,
Error
:
trace
.
Err
,
Stack
:
make
([]
string
,
len
(
trace
.
Stack
)),
Storage
:
make
(
map
[
string
]
string
),
...
...
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