Don't lookup transactions if no log events

- Prevents EOF error on transactions lookup
This commit is contained in:
Rob Mulholand
2019-04-18 09:53:18 -05:00
parent 13cd7126cc
commit 3fd6269b78
3 changed files with 14 additions and 6 deletions
-2
View File
@@ -18,7 +18,6 @@ package geth
import (
"errors"
"fmt"
"github.com/ethereum/go-ethereum"
"math/big"
"strconv"
@@ -122,7 +121,6 @@ func (blockChain *BlockChain) GetTransactions(transactionHashes []common.Hash) (
rpcErr := blockChain.rpcClient.BatchCall(batch)
if rpcErr != nil {
fmt.Println("rpc err")
return []core.TransactionModel{}, rpcErr
}