Skip to content

Commit

Permalink
fix ReadPreimage
Browse files Browse the repository at this point in the history
  • Loading branch information
JukLee0ira committed Jan 17, 2025
1 parent cb24ac0 commit e2945f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/rawdb/accessors_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func WriteChainConfig(db ethdb.KeyValueWriter, hash common.Hash, cfg *params.Cha

// ReadPreimage returns a Database instance with the key prefix for preimage entries.
func ReadPreimage(db DatabaseReader, hash common.Hash) []byte {
data, _ := db.Get(append(preimagePrefix, hash.Bytes()...))
data, _ := db.Get(preimageKey(hash))
return data
}

Expand Down

0 comments on commit e2945f8

Please sign in to comment.