Skip to content

Commit

Permalink
give informal address a try (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
csdtowards authored Oct 28, 2024
1 parent ae76544 commit 0847084
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion disperser/batcher/slice_signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ func (s *SliceSigner) aggregateSignature(ctx context.Context, signInfo *SignInfo
signatures := recv.signatures

if recv.Err != nil {
s.logger.Warn("[signer] error returned from messageChan", "socket", signer.Socket, "err", recv.Err)
s.logger.Warn("[signer] error returned from messageChan", "address", signer.Signer, "socket", signer.Socket, "err", recv.Err)
continue
}

Expand Down
6 changes: 2 additions & 4 deletions disperser/signer/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ func (c client) BatchSign(ctx context.Context, addr string, data []*pb.SignReque
}
}

if formattedAddr == "" {
return nil, fmt.Errorf("signer addr is not correct: %v", addr)
if formattedAddr != "" {
addr = formattedAddr
}

addr = formattedAddr
} else {
addr = matches[0]
}
Expand Down

0 comments on commit 0847084

Please sign in to comment.