diff --git a/jsoncmd.go b/jsoncmd.go index 5a9a1321..f5dfb4a0 100644 --- a/jsoncmd.go +++ b/jsoncmd.go @@ -6168,7 +6168,7 @@ func (cmd *StopCmd) UnmarshalJSON(b []byte) error { // a SubmitBlockCmd command. type SubmitBlockOptions struct { // must be provided if server provided a workid with template. - WorkId string `json:"workid,omitempty"` + WorkID string `json:"workid,omitempty"` } // SubmitBlockCmd is a type handling custom marshaling and diff --git a/jsoncmd_test.go b/jsoncmd_test.go index ab4f9c12..1d012c61 100644 --- a/jsoncmd_test.go +++ b/jsoncmd_test.go @@ -1473,12 +1473,12 @@ var jsoncmdtests = []struct { f: func() (Cmd, error) { return NewSubmitBlockCmd(testId, "lotsofhex", - &SubmitBlockOptions{WorkId: "otherstuff"}) + &SubmitBlockOptions{WorkID: "otherstuff"}) }, result: &SubmitBlockCmd{ id: testId, HexBlock: "lotsofhex", - Options: &SubmitBlockOptions{WorkId: "otherstuff"}, + Options: &SubmitBlockOptions{WorkID: "otherstuff"}, }, }, {