Sfoglia il codice sorgente

core/state: return the starting nonce for non-existent accs (testnet)

Péter Szilágyi 9 anni fa
parent
commit
8ee84584a4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      core/state/statedb.go

+ 1 - 1
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 {