aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-05-27 15:42:11 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-05-27 15:42:11 +0800
commit8ee84584a407464511b453eebaa31854979aa593 (patch)
tree1c005bfceed6692dcb7c0c636c38e74df3d300a9 /core
parenta7434fd0085f55235acea5348db0c9247e9aac10 (diff)
downloadgo-tangerine-8ee84584a407464511b453eebaa31854979aa593.tar
go-tangerine-8ee84584a407464511b453eebaa31854979aa593.tar.gz
go-tangerine-8ee84584a407464511b453eebaa31854979aa593.tar.bz2
go-tangerine-8ee84584a407464511b453eebaa31854979aa593.tar.lz
go-tangerine-8ee84584a407464511b453eebaa31854979aa593.tar.xz
go-tangerine-8ee84584a407464511b453eebaa31854979aa593.tar.zst
go-tangerine-8ee84584a407464511b453eebaa31854979aa593.zip
core/state: return the starting nonce for non-existent accs (testnet)
Diffstat (limited to 'core')
-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 {