From ba851abdc39ef5a147891c42aec0b416d3782d61 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Sun, 24 Nov 2024 22:05:40 -0600 Subject: [PATCH] =?UTF-8?q?Dont=20return=20nil,=20nil,=20nil=20when=20bloc?= =?UTF-8?q?k=20record=20is=20nil=20-=20the=20response=20has=E2=80=A6=20(#1?= =?UTF-8?q?81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/rpc/fullnode.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/rpc/fullnode.go b/pkg/rpc/fullnode.go index ba587b1..9ee69fd 100644 --- a/pkg/rpc/fullnode.go +++ b/pkg/rpc/fullnode.go @@ -213,11 +213,6 @@ func (s *FullNodeService) GetBlockRecordByHeight(opts *GetBlockByHeightOptions) return nil, resp, err } - // I believe this happens when the node is not yet synced to this height - if record == nil || record.BlockRecord.IsAbsent() { - return nil, nil, nil - } - return record, resp, nil }