Skip to content

Commit 6999f1d

Browse files
authored
Merge pull request #3036 from karalabe/release/1.4
Geth 1.4.13
2 parents 9bdbaf4 + 95bfedd commit 6999f1d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.12
1+
1.4.13

cmd/geth/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const (
5050
clientIdentifier = "Geth" // Client identifier to advertise over the network
5151
versionMajor = 1 // Major version component of the current release
5252
versionMinor = 4 // Minor version component of the current release
53-
versionPatch = 12 // Patch version component of the current release
53+
versionPatch = 13 // Patch version component of the current release
5454
versionMeta = "stable" // Version metadata to append to the version string
5555

5656
versionOracle = "0xfa7b9770ca4cb04296cac84f37736d4041251cdf" // Ethereum address of the Geth release oracle

core/state/state_object.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ func (self *StateObject) Update() {
154154
}
155155

156156
func (c *StateObject) AddBalance(amount *big.Int) {
157+
if amount.Cmp(common.Big0) == 0 {
158+
return
159+
}
157160
c.SetBalance(new(big.Int).Add(c.balance, amount))
158161

159162
if glog.V(logger.Core) {
@@ -162,6 +165,9 @@ func (c *StateObject) AddBalance(amount *big.Int) {
162165
}
163166

164167
func (c *StateObject) SubBalance(amount *big.Int) {
168+
if amount.Cmp(common.Big0) == 0 {
169+
return
170+
}
165171
c.SetBalance(new(big.Int).Sub(c.balance, amount))
166172

167173
if glog.V(logger.Core) {

0 commit comments

Comments
 (0)