aboutsummaryrefslogtreecommitdiffstats
path: root/trie/sync.go
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2018-04-09 20:46:27 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-04-09 20:46:27 +0800
commit1100e8ba633d968da8ae2caca0a5d0cf48bcfa92 (patch)
tree86bc7ad0a079cd05c065078999618b4dcca616b0 /trie/sync.go
parent0fac705ed0a2efcda4da9dce8971bbda73f299d5 (diff)
downloaddexon-1100e8ba633d968da8ae2caca0a5d0cf48bcfa92.tar.gz
dexon-1100e8ba633d968da8ae2caca0a5d0cf48bcfa92.tar.zst
dexon-1100e8ba633d968da8ae2caca0a5d0cf48bcfa92.zip
eth/downloader: flush state sync data before exit (#16280)
Diffstat (limited to 'trie/sync.go')
-rw-r--r--trie/sync.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/trie/sync.go b/trie/sync.go
index b573a9f73..4ae975d04 100644
--- a/trie/sync.go
+++ b/trie/sync.go
@@ -212,7 +212,7 @@ func (s *TrieSync) Process(results []SyncResult) (bool, int, error) {
}
// Commit flushes the data stored in the internal membatch out to persistent
-// storage, returning th enumber of items written and any occurred error.
+// storage, returning the number of items written and any occurred error.
func (s *TrieSync) Commit(dbw ethdb.Putter) (int, error) {
// Dump the membatch into a database dbw
for i, key := range s.membatch.order {