rawdb: update the doc for function WritePreimages

This commit is contained in:
Lin Corey 2018-11-09 18:32:02 +08:00
parent 2865b78f38
commit e841b44b69

View file

@ -77,8 +77,7 @@ 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.
// 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 {