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
|
return data
|
||||||
}
|
}
|
||||||
|
|
||||||
// WritePreimages writes the provided set of preimages to the database. `number` is the
|
// WritePreimages writes the provided set of preimages to the database.
|
||||||
// current block number, and is used for debug messages only.
|
|
||||||
func WritePreimages(db DatabaseWriter, preimages map[common.Hash][]byte) {
|
func WritePreimages(db DatabaseWriter, preimages map[common.Hash][]byte) {
|
||||||
for hash, preimage := range preimages {
|
for hash, preimage := range preimages {
|
||||||
if err := db.Put(preimageKey(hash), preimage); err != nil {
|
if err := db.Put(preimageKey(hash), preimage); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue