mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
rawdb: update the doc for function WritePreimages
This commit is contained in:
parent
2865b78f38
commit
e841b44b69
1 changed files with 1 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue