diff options
Diffstat (limited to 'light')
-rw-r--r-- | light/odr_util.go | 4 |
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 |