aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJia Chenhui <jiachenhui1989@gmail.com>2018-03-26 19:45:34 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-03-26 19:45:34 +0800
commite506d384e90e709027b46c1d3dffc0390482a22c (patch)
tree841c2510604ce49a92c3139ff41c54b808fd3988
parentdd708c1636e7925249e8d61c3f5363563c59c4b0 (diff)
downloaddexon-e506d384e90e709027b46c1d3dffc0390482a22c.tar
dexon-e506d384e90e709027b46c1d3dffc0390482a22c.tar.gz
dexon-e506d384e90e709027b46c1d3dffc0390482a22c.tar.bz2
dexon-e506d384e90e709027b46c1d3dffc0390482a22c.tar.lz
dexon-e506d384e90e709027b46c1d3dffc0390482a22c.tar.xz
dexon-e506d384e90e709027b46c1d3dffc0390482a22c.tar.zst
dexon-e506d384e90e709027b46c1d3dffc0390482a22c.zip
core/state: fix typo (#16370)
-rw-r--r--core/state/statedb.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/state/statedb.go b/core/state/statedb.go
index 776693e24..5473ff8da 100644
--- a/core/state/statedb.go
+++ b/core/state/statedb.go
@@ -83,7 +83,7 @@ type StateDB struct {
lock sync.Mutex
}
-// Create a new state from a given trie
+// Create a new state from a given trie.
func New(root common.Hash, db Database) (*StateDB, error) {
tr, err := db.OpenTrie(root)
if err != nil {
@@ -110,7 +110,7 @@ func (self *StateDB) Error() error {
return self.dbErr
}
-// Reset clears out all emphemeral state objects from the state db, but keeps
+// Reset clears out all ephemeral state objects from the state db, but keeps
// the underlying state trie to avoid reloading data for the next operations.
func (self *StateDB) Reset(root common.Hash) error {
tr, err := self.db.OpenTrie(root)