aboutsummaryrefslogtreecommitdiffstats
path: root/light
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-11-20 19:18:39 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-11-23 16:34:01 +0800
commitaad4890082c1624795991d534db9497c8b63630d (patch)
tree88dca9b73bdcdea2cbed32471c37933c308ac54d /light
parenta0e42aa4e206247efe6df8706a2fb6bbdf6074b4 (diff)
downloadgo-tangerine-aad4890082c1624795991d534db9497c8b63630d.tar
go-tangerine-aad4890082c1624795991d534db9497c8b63630d.tar.gz
go-tangerine-aad4890082c1624795991d534db9497c8b63630d.tar.bz2
go-tangerine-aad4890082c1624795991d534db9497c8b63630d.tar.lz
go-tangerine-aad4890082c1624795991d534db9497c8b63630d.tar.xz
go-tangerine-aad4890082c1624795991d534db9497c8b63630d.tar.zst
go-tangerine-aad4890082c1624795991d534db9497c8b63630d.zip
cmd/geth, core, light, mobile: removed state account StartingNonce
All account's nonce start at 0.
Diffstat (limited to 'light')
-rw-r--r--light/state.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/light/state.go b/light/state.go
index 88f60efbb..3c38f165b 100644
--- a/light/state.go
+++ b/light/state.go
@@ -26,9 +26,6 @@ import (
"golang.org/x/net/context"
)
-// StartingNonce determines the default nonce when new accounts are being created.
-var StartingNonce uint64
-
// LightState is a memory representation of a state.
// This version is ODR capable, caching only the already accessed part of the
// state, retrieving unknown parts on-demand from the ODR backend. Changes are
@@ -238,7 +235,7 @@ func (self *LightState) newStateObject(addr common.Address) *StateObject {
}
stateObject := NewStateObject(addr, self.odr)
- stateObject.SetNonce(StartingNonce)
+ stateObject.SetNonce(0)
self.stateObjects[addr.Str()] = stateObject
return stateObject