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
3ef1cd43
Commit
3ef1cd43
authored
Apr 21, 2015
by
Andy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for: Please remove the "minGasPrice" from block returns #754
parent
8d85e45c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
responses.go
rpc/responses.go
+0
-6
No files found.
rpc/responses.go
View file @
3ef1cd43
...
...
@@ -24,7 +24,6 @@ type BlockRes struct {
Size
*
hexnum
`json:"size"`
ExtraData
*
hexdata
`json:"extraData"`
GasLimit
*
hexnum
`json:"gasLimit"`
MinGasPrice
*
hexnum
`json:"minGasPrice"`
GasUsed
*
hexnum
`json:"gasUsed"`
UnixTimestamp
*
hexnum
`json:"timestamp"`
Transactions
[]
*
TransactionRes
`json:"transactions"`
...
...
@@ -48,7 +47,6 @@ func (b *BlockRes) MarshalJSON() ([]byte, error) {
Size
*
hexnum
`json:"size"`
ExtraData
*
hexdata
`json:"extraData"`
GasLimit
*
hexnum
`json:"gasLimit"`
MinGasPrice
*
hexnum
`json:"minGasPrice"`
GasUsed
*
hexnum
`json:"gasUsed"`
UnixTimestamp
*
hexnum
`json:"timestamp"`
Transactions
[]
*
TransactionRes
`json:"transactions"`
...
...
@@ -69,7 +67,6 @@ func (b *BlockRes) MarshalJSON() ([]byte, error) {
ext
.
Size
=
b
.
Size
ext
.
ExtraData
=
b
.
ExtraData
ext
.
GasLimit
=
b
.
GasLimit
ext
.
MinGasPrice
=
b
.
MinGasPrice
ext
.
GasUsed
=
b
.
GasUsed
ext
.
UnixTimestamp
=
b
.
UnixTimestamp
ext
.
Transactions
=
b
.
Transactions
...
...
@@ -94,7 +91,6 @@ func (b *BlockRes) MarshalJSON() ([]byte, error) {
Size
*
hexnum
`json:"size"`
ExtraData
*
hexdata
`json:"extraData"`
GasLimit
*
hexnum
`json:"gasLimit"`
MinGasPrice
*
hexnum
`json:"minGasPrice"`
GasUsed
*
hexnum
`json:"gasUsed"`
UnixTimestamp
*
hexnum
`json:"timestamp"`
Transactions
[]
*
hexdata
`json:"transactions"`
...
...
@@ -115,7 +111,6 @@ func (b *BlockRes) MarshalJSON() ([]byte, error) {
ext
.
Size
=
b
.
Size
ext
.
ExtraData
=
b
.
ExtraData
ext
.
GasLimit
=
b
.
GasLimit
ext
.
MinGasPrice
=
b
.
MinGasPrice
ext
.
GasUsed
=
b
.
GasUsed
ext
.
UnixTimestamp
=
b
.
UnixTimestamp
ext
.
Transactions
=
make
([]
*
hexdata
,
len
(
b
.
Transactions
))
...
...
@@ -151,7 +146,6 @@ func NewBlockRes(block *types.Block, fullTx bool) *BlockRes {
res
.
Size
=
newHexNum
(
block
.
Size
()
.
Int64
())
res
.
ExtraData
=
newHexData
(
block
.
Header
()
.
Extra
)
res
.
GasLimit
=
newHexNum
(
block
.
GasLimit
())
// res.MinGasPrice =
res
.
GasUsed
=
newHexNum
(
block
.
GasUsed
())
res
.
UnixTimestamp
=
newHexNum
(
block
.
Time
())
...
...
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