Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix closed connection #1322

Merged
merged 3 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion relayer/relays/parachain/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (relay *Relay) Start(ctx context.Context, eg *errgroup.Group) error {
return fmt.Errorf("unable to connect to ethereum: beefy: %w", err)
}

err = relay.relaychainConn.Connect(ctx)
err = relay.relaychainConn.ConnectWithHeartBeat(ctx, 30*time.Second)
if err != nil {
return err
}
Expand Down
8 changes: 6 additions & 2 deletions relayer/relays/parachain/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import (
"context"
"errors"
"fmt"
"github.com/ethereum/go-ethereum/accounts/abi"
"reflect"
"strings"

"github.com/ethereum/go-ethereum/accounts/abi"

"github.com/snowfork/go-substrate-rpc-client/v4/scale"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
Expand Down Expand Up @@ -122,7 +123,10 @@ func (s *Scanner) findTasks(
return nil, err
}

s.gatherProofInputs(tasks)
err = s.gatherProofInputs(tasks)
if err != nil {
return nil, err
yrong marked this conversation as resolved.
Show resolved Hide resolved
}

return tasks, nil
}
Expand Down
Loading