From 940abafb90c96df3421760a9283c38adb9549dcc Mon Sep 17 00:00:00 2001 From: wizeguyy Date: Wed, 2 Nov 2022 09:25:59 -0500 Subject: [PATCH] bugfix: don't trap errors in GetPendingHeader --- quaiclient/ethclient/ethclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quaiclient/ethclient/ethclient.go b/quaiclient/ethclient/ethclient.go index 273f65fb9e..2d81d7ea25 100644 --- a/quaiclient/ethclient/ethclient.go +++ b/quaiclient/ethclient/ethclient.go @@ -467,7 +467,7 @@ func (ec *Client) GetPendingHeader(ctx context.Context) (*types.Header, error) { var pendingHeader *types.Header err := ec.c.CallContext(ctx, &pendingHeader, "quai_getPendingHeader") if err != nil { - return nil, nil + return nil, err } return pendingHeader, nil }