aboutsummaryrefslogtreecommitdiffstats
path: root/light/odr_util.go
diff options
context:
space:
mode:
Diffstat (limited to 'light/odr_util.go')
-rw-r--r--light/odr_util.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/light/odr_util.go b/light/odr_util.go
index 97ba440ac..d56330e36 100644
--- a/light/odr_util.go
+++ b/light/odr_util.go
@@ -144,7 +144,9 @@ func GetBlockReceipts(ctx context.Context, odr OdrBackend, hash common.Hash, num
genesis := core.GetCanonicalHash(odr.Database(), 0)
config, _ := core.GetChainConfig(odr.Database(), genesis)
- core.SetReceiptsData(config, block, receipts)
+ if err := core.SetReceiptsData(config, block, receipts); err != nil {
+ return nil, err
+ }
core.WriteBlockReceipts(odr.Database(), hash, number, receipts)
}
return receipts, nil