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
3ab05ddd
Commit
3ab05ddd
authored
Feb 26, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump
parent
76f6d75e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
+4
-7
main.go
cmd/ethereum/main.go
+1
-1
main.qml
cmd/mist/assets/qml/main.qml
+1
-1
main.go
cmd/mist/main.go
+1
-1
state_transition.go
core/state_transition.go
+1
-4
No files found.
cmd/ethereum/main.go
View file @
3ab05ddd
...
...
@@ -37,7 +37,7 @@ import (
const
(
ClientIdentifier
=
"Ethereum(G)"
Version
=
"0.8.
5
"
Version
=
"0.8.
6
"
)
var
clilogger
=
logger
.
NewLogger
(
"CLI"
)
...
...
cmd/mist/assets/qml/main.qml
View file @
3ab05ddd
...
...
@@ -964,7 +964,7 @@ ApplicationWindow {
anchors.top
:
parent
.
top
anchors.topMargin
:
30
font.pointSize
:
12
text
:
"<h2>Mist (0.8.
5
)</h2><br><h3>Development</h3>Jeffrey Wilcke<br>Viktor Trón<br>Felix Lange<br>Taylor Gerring<br>Daniel Nagy<br>Gustav Simonsson<br><h3>UX/UI</h3>Alex van de Sande<br>Fabian Vogelsteller"
text
:
"<h2>Mist (0.8.
6
)</h2><br><h3>Development</h3>Jeffrey Wilcke<br>Viktor Trón<br>Felix Lange<br>Taylor Gerring<br>Daniel Nagy<br>Gustav Simonsson<br><h3>UX/UI</h3>Alex van de Sande<br>Fabian Vogelsteller"
}
}
...
...
cmd/mist/main.go
View file @
3ab05ddd
...
...
@@ -36,7 +36,7 @@ import (
const
(
ClientIdentifier
=
"Mist"
Version
=
"0.8.
5
"
Version
=
"0.8.
6
"
)
var
ethereum
*
eth
.
Ethereum
...
...
core/state_transition.go
View file @
3ab05ddd
...
...
@@ -251,16 +251,13 @@ func (self *StateTransition) RefundGas() {
coinbase
,
sender
:=
self
.
Coinbase
(),
self
.
From
()
// Return remaining gas
remaining
:=
new
(
big
.
Int
)
.
Mul
(
self
.
gas
,
self
.
msg
.
GasPrice
())
fmt
.
Println
(
"REFUND:"
,
remaining
)
sender
.
AddBalance
(
remaining
)
uhalf
:=
new
(
big
.
Int
)
.
Div
(
self
.
GasUsed
(),
ethutil
.
Big2
)
for
addr
,
ref
:=
range
self
.
state
.
Refunds
()
{
refund
:=
ethutil
.
BigMin
(
uhalf
,
ref
)
self
.
gas
.
Add
(
self
.
gas
,
refund
)
addToIt
:=
refund
.
Mul
(
refund
,
self
.
msg
.
GasPrice
())
fmt
.
Println
(
"ADD TO IT"
,
addToIt
)
self
.
state
.
AddBalance
([]
byte
(
addr
),
addToIt
)
self
.
state
.
AddBalance
([]
byte
(
addr
),
refund
.
Mul
(
refund
,
self
.
msg
.
GasPrice
()))
}
coinbase
.
RefundGas
(
self
.
gas
,
self
.
msg
.
GasPrice
())
...
...
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