Skip to content

Commit

Permalink
error during the warmup phase
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Jun 10, 2024
1 parent f43637d commit ef890c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mixing/mixclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,8 @@ func (c *Client) Dicemix(ctx context.Context, rand io.Reader, cj *CoinJoin) erro
case <-c.warming:
case <-ctx.Done():
return ctx.Err()
default:
return ErrWarming
}

pub, priv, err := generateSecp256k1(rand)
Expand Down
2 changes: 2 additions & 0 deletions mixing/mixclient/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ var (
ErrTooFewPeers = errors.New("not enough peers required to mix")

ErrUnknownPRs = errors.New("unable to participate in reformed session referencing unknown PRs")

ErrWarming = errors.New("mixing client is observing messages; retry request later")
)

// testPeerBlamedError describes the error condition of a misbehaving peer
Expand Down

0 comments on commit ef890c6

Please sign in to comment.