Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 503 Bytes
package worker
import (
func (w *Worker) getTransaction(logger log.Logger, hash common.Hash) (*types.Transaction, error) {
ethTx, pen, err := w.ethBack.GetTransactionByHash(context.Background(), hash)
if err != nil {
return nil, ErrEthGetTransaction
if pen {
return nil, ErrEthTxInPendingState
return ethTx, nil
You can’t perform that action at this time.