change to stores

This commit is contained in:
hello2mao 2019-04-26 16:21:25 +08:00
parent be8b5e236b
commit ad499a03e1

View file

@ -231,7 +231,7 @@ func ReadBody(db ethdb.Reader, hash common.Hash, number uint64) *types.Body {
return body return body
} }
// WriteBody store a block body into the database. // WriteBody stores a block body into the database.
func WriteBody(db ethdb.Writer, hash common.Hash, number uint64, body *types.Body) { func WriteBody(db ethdb.Writer, hash common.Hash, number uint64, body *types.Body) {
data, err := rlp.EncodeToBytes(body) data, err := rlp.EncodeToBytes(body)
if err != nil { if err != nil {