Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
chore: log reason of failed miner response
Browse files Browse the repository at this point in the history
  • Loading branch information
pawellewandowski98 authored and arkadiuszos4chain committed Oct 20, 2023
1 parent 27d80ad commit 0a8da17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chainstate/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (c *Client) ValidateMiners(ctx context.Context) {
if c.Minercraft().APIType() == minercraft.MAPI {
quote, err := c.Minercraft().FeeQuote(ctx, miner.Miner)
if err != nil {
client.options.logger.Error(ctx, fmt.Sprintf("No FeeQuote response from miner %s", miner.Miner.Name))
client.options.logger.Error(ctx, fmt.Sprintf("No FeeQuote response from miner %s. Reason: %s", miner.Miner.Name, err))
miner.FeeUnit = nil
return
}
Expand All @@ -234,7 +234,7 @@ func (c *Client) ValidateMiners(ctx context.Context) {
} else if c.Minercraft().APIType() == minercraft.Arc {
quote, err := c.Minercraft().PolicyQuote(ctx, miner.Miner)
if err != nil {
client.options.logger.Error(ctx, fmt.Sprintf("No FeeQuote response from miner %s", miner.Miner.Name))
client.options.logger.Error(ctx, fmt.Sprintf("No FeeQuote response from miner %s. Reason: %s", miner.Miner.Name, err))
miner.FeeUnit = nil
return
}
Expand Down

0 comments on commit 0a8da17

Please sign in to comment.