From a7b2617f10833b6495f71f66189a62479b3f98c3 Mon Sep 17 00:00:00 2001 From: flicker-harmony Date: Thu, 12 Dec 2019 21:41:21 +0300 Subject: [PATCH] Fix jenkins --- internal/hmyapi/transactionpool.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/hmyapi/transactionpool.go b/internal/hmyapi/transactionpool.go index d81931c66..f3a220f8c 100644 --- a/internal/hmyapi/transactionpool.go +++ b/internal/hmyapi/transactionpool.go @@ -111,7 +111,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionByHash(ctx context.Context, has // Try to return an already finalized transaction tx, blockHash, blockNumber, index := rawdb.ReadTransaction(s.b.ChainDb(), hash) block, _ := s.b.GetBlock(ctx, blockHash) - if block != nil { + if block == nil { return nil } if tx != nil { @@ -130,7 +130,7 @@ func (s *PublicTransactionPoolAPI) GetStakingTransactionByHash(ctx context.Conte // Try to return an already finalized transaction stx, blockHash, blockNumber, index := rawdb.ReadStakingTransaction(s.b.ChainDb(), hash) block, _ := s.b.GetBlock(ctx, blockHash) - if block != nil { + if block == nil { return nil } if stx != nil {