diff options
author | Corey Lin <514971757@qq.com> | 2018-11-09 18:51:07 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-11-09 18:51:07 +0800 |
commit | 1ff152f3a43e4adf030ac61eb5d8da345554fc5a (patch) | |
tree | d54b3e17d3993737f9eac3b53c0b41af86f23ea6 /core/rawdb | |
parent | f574c4e74b12d275d24b209aac8dd98ed9b9bb52 (diff) | |
download | dexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.tar dexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.tar.gz dexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.tar.bz2 dexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.tar.lz dexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.tar.xz dexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.tar.zst dexon-1ff152f3a43e4adf030ac61eb5d8da345554fc5a.zip |
rawdb: remove unused parameter for WritePreimages func (#18059)
* rawdb: remove unused parameter for WritePreimages func and modify a
spelling mistake
* rawdb: update the doc for function WritePreimages
Diffstat (limited to 'core/rawdb')
-rw-r--r-- | core/rawdb/accessors_metadata.go | 5 | ||||
-rw-r--r-- | core/rawdb/schema.go | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/core/rawdb/accessors_metadata.go b/core/rawdb/accessors_metadata.go index 514328e87..3b6e6548d 100644 --- a/core/rawdb/accessors_metadata.go +++ b/core/rawdb/accessors_metadata.go @@ -77,9 +77,8 @@ func ReadPreimage(db DatabaseReader, hash common.Hash) []byte { return data } -// WritePreimages writes the provided set of preimages to the database. `number` is the -// current block number, and is used for debug messages only. -func WritePreimages(db DatabaseWriter, number uint64, preimages map[common.Hash][]byte) { +// WritePreimages writes the provided set of preimages to the database. +func WritePreimages(db DatabaseWriter, preimages map[common.Hash][]byte) { for hash, preimage := range preimages { if err := db.Put(preimageKey(hash), preimage); err != nil { log.Crit("Failed to store trie preimage", "err", err) diff --git a/core/rawdb/schema.go b/core/rawdb/schema.go index ef597ef30..8a9921ef4 100644 --- a/core/rawdb/schema.go +++ b/core/rawdb/schema.go @@ -35,7 +35,7 @@ var ( // headBlockKey tracks the latest know full block's hash. headBlockKey = []byte("LastBlock") - // headFastBlockKey tracks the latest known incomplete block's hash duirng fast sync. + // headFastBlockKey tracks the latest known incomplete block's hash during fast sync. headFastBlockKey = []byte("LastFast") // fastTrieProgressKey tracks the number of trie entries imported during fast sync. |