diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-10-05 19:01:34 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-10-09 04:01:39 +0800 |
commit | 1de796f10134bb4aa245591e0d8802e320892efb (patch) | |
tree | dff14c87d5c29b779ab1e4543acd66489ea55bb2 /core/state | |
parent | 44fd3951410fb5923d7e578ac97942a7ea791e96 (diff) | |
download | go-tangerine-1de796f10134bb4aa245591e0d8802e320892efb.tar go-tangerine-1de796f10134bb4aa245591e0d8802e320892efb.tar.gz go-tangerine-1de796f10134bb4aa245591e0d8802e320892efb.tar.bz2 go-tangerine-1de796f10134bb4aa245591e0d8802e320892efb.tar.lz go-tangerine-1de796f10134bb4aa245591e0d8802e320892efb.tar.xz go-tangerine-1de796f10134bb4aa245591e0d8802e320892efb.tar.zst go-tangerine-1de796f10134bb4aa245591e0d8802e320892efb.zip |
cmd, core, eth: added official testnet
Diffstat (limited to 'core/state')
-rw-r--r-- | core/state/statedb.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/state/statedb.go b/core/state/statedb.go index 499ea5f52..ad673aecb 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -28,6 +28,10 @@ import ( "github.com/ethereum/go-ethereum/trie" ) +// The starting nonce determines the default nonce when new accounts are being +// created. +var StartingNonce uint64 + // StateDBs within the ethereum protocol are used to store anything // within the merkle trie. StateDBs take care of caching and storing // nested states. It's the general query interface to retrieve: @@ -263,6 +267,7 @@ func (self *StateDB) newStateObject(addr common.Address) *StateObject { } stateObject := NewStateObject(addr, self.db) + stateObject.SetNonce(StartingNonce) self.stateObjects[addr.Str()] = stateObject return stateObject |