aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-05-27 16:10:52 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-05-27 16:10:52 +0800
commitab664c7e17009729d1083d8d4f7c37eb387012d3 (patch)
tree1c005bfceed6692dcb7c0c636c38e74df3d300a9
parenta7434fd0085f55235acea5348db0c9247e9aac10 (diff)
parent8ee84584a407464511b453eebaa31854979aa593 (diff)
downloaddexon-ab664c7e17009729d1083d8d4f7c37eb387012d3.tar
dexon-ab664c7e17009729d1083d8d4f7c37eb387012d3.tar.gz
dexon-ab664c7e17009729d1083d8d4f7c37eb387012d3.tar.bz2
dexon-ab664c7e17009729d1083d8d4f7c37eb387012d3.tar.lz
dexon-ab664c7e17009729d1083d8d4f7c37eb387012d3.tar.xz
dexon-ab664c7e17009729d1083d8d4f7c37eb387012d3.tar.zst
dexon-ab664c7e17009729d1083d8d4f7c37eb387012d3.zip
Merge pull request #2626 from karalabe/fix-testnet-zero-nonce
core/state: return the starting nonce for non-existent accs (testnet)
-rw-r--r--core/state/statedb.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/state/statedb.go b/core/state/statedb.go
index 22ffa36a0..27bc38373 100644
--- a/core/state/statedb.go
+++ b/core/state/statedb.go
@@ -127,7 +127,7 @@ func (self *StateDB) GetNonce(addr common.Address) uint64 {
return stateObject.nonce
}
- return 0
+ return StartingNonce
}
func (self *StateDB) GetCode(addr common.Address) []byte {