Skip to content

Commit

Permalink
Fix calc_pow
Browse files Browse the repository at this point in the history
  • Loading branch information
duggavo committed May 16, 2023
1 parent 93a72f6 commit ddd774d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions rpc/daemon/jsonrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,12 @@ func (c *Client) SyncInfo(ctx context.Context) (*SyncInfoResult, error) {
return resp, nil
}

func (c *Client) CalcPow(ctx context.Context, params CalcPowParameters) (*CalcPowResult, error) {
resp := &CalcPowResult{}
func (c *Client) CalcPow(ctx context.Context, params CalcPowParameters) (string, error) {
var resp string

err := c.JSONRPC(ctx, methodCalcPow, params, resp)
if err != nil {
return nil, fmt.Errorf("jsonrpc: %w", err)
return "", fmt.Errorf("jsonrpc: %w", err)
}

return resp, nil
Expand Down
4 changes: 0 additions & 4 deletions rpc/daemon/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -928,10 +928,6 @@ type CalcPowParameters struct {
SeedHash string `json:"seed_hash"`
}

type CalcPowResult struct {
Result string `json:"result"`
}

type SubmitBlockResult struct {
Status string `json:"status"`
}

0 comments on commit ddd774d

Please sign in to comment.