File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1- 1.4.12
1+ 1.4.13
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -154,6 +154,9 @@ func (self *StateObject) Update() {
154154}
155155
156156func (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
164167func (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 ) {
You can’t perform that action at this time.
0 commit comments