Skip to content

Commit 04d8bf0

Browse files
CoderZhizjshen14
authored andcommitted
fix caching bug (#933)
1 parent 486eeba commit 04d8bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blockchain/blockdao.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ func (dao *blockDAO) Footer(h hash.Hash256) (*block.Footer, error) {
265265

266266
func (dao *blockDAO) footer(h hash.Hash256) (*block.Footer, error) {
267267
if dao.footerCache != nil {
268-
footer, ok := dao.bodyCache.Get(h)
268+
footer, ok := dao.footerCache.Get(h)
269269
if ok {
270270
cacheMtc.WithLabelValues("hit_footer").Inc()
271271
return footer.(*block.Footer), nil

0 commit comments

Comments
 (0)