Skip to content

Commit

Permalink
wip: debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed Nov 11, 2023
1 parent 71052b7 commit fa8c2eb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkg/relayer/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ func runRelayer(cmd *cobra.Command, _ []string) error {

// Start the relay miner
log.Println("INFO: Starting relay miner...")
relayMiner.Start(ctx)
if err := relayMiner.Start(ctx); err != nil {
return err
}

log.Println("INFO: Relay miner stopped; exiting")
return nil
Expand Down
8 changes: 7 additions & 1 deletion pkg/relayer/proxy/server_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ import (
// is responsible for listening for incoming relay requests and relaying them to the supported proxied service.
func (rp *relayerProxy) BuildProvidedServices(ctx context.Context) error {
// Get the supplier address from the keyring
supplierAddress, err := rp.keyring.Key(rp.signingKeyName)
supplierKey, err := rp.keyring.Key(rp.signingKeyName)
if err != nil {
return err
}

// TODO_DISCUSS: is there a reason not to assign rp.supplierAddress here?
supplierAddress, err := supplierKey.GetAddress()
if err != nil {
return err
}
Expand Down

0 comments on commit fa8c2eb

Please sign in to comment.