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
7098ec69
Commit
7098ec69
authored
Jun 23, 2015
by
Felix Lange
Committed by
Jeffrey Wilcke
Jun 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpc: unmask pending block fields
This pleases the RPC tests.
parent
e0e5f747
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
eth.go
rpc/api/eth.go
+0
-8
No files found.
rpc/api/eth.go
View file @
7098ec69
...
@@ -348,14 +348,6 @@ func (self *ethApi) GetBlockByNumber(req *shared.Request) (interface{}, error) {
...
@@ -348,14 +348,6 @@ func (self *ethApi) GetBlockByNumber(req *shared.Request) (interface{}, error) {
block
:=
self
.
xeth
.
EthBlockByNumber
(
args
.
BlockNumber
)
block
:=
self
.
xeth
.
EthBlockByNumber
(
args
.
BlockNumber
)
br
:=
NewBlockRes
(
block
,
args
.
IncludeTxs
)
br
:=
NewBlockRes
(
block
,
args
.
IncludeTxs
)
// If request was for "pending", nil nonsensical fields
if
args
.
BlockNumber
==
-
2
{
br
.
BlockHash
=
nil
br
.
BlockNumber
=
nil
br
.
Miner
=
nil
br
.
Nonce
=
nil
br
.
LogsBloom
=
nil
}
return
br
,
nil
return
br
,
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