From 57e1282caf698e21ffb40fad6664eb50bb997b54 Mon Sep 17 00:00:00 2001 From: Shivam Sharma Date: Wed, 3 Aug 2022 15:56:36 +0530 Subject: [PATCH] fix : lint --- eth/api.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eth/api.go b/eth/api.go index ba688b4483..f571a57507 100644 --- a/eth/api.go +++ b/eth/api.go @@ -343,6 +343,7 @@ func (api *PrivateDebugAPI) GetBadBlocks(ctx context.Context) ([]*BadBlockArgs, } else { blockRlp = fmt.Sprintf("0x%x", rlpBytes) } + if blockJSON, err = ethapi.RPCMarshalBlock(block, true, true, api.eth.APIBackend.ChainConfig(), api.eth.chainDb); err != nil { blockJSON = map[string]interface{}{"error": err.Error()} }