diff --git a/jsoncmd.go b/jsoncmd.go index 006f61c2..0f91688d 100644 --- a/jsoncmd.go +++ b/jsoncmd.go @@ -3510,7 +3510,7 @@ type ImportPrivKeyCmd struct { id interface{} PrivKey string Label string - ReScan bool + Rescan bool } // Enforce that ImportPrivKeyCmd satisifies the Cmd interface. @@ -3542,7 +3542,7 @@ func NewImportPrivKeyCmd(id interface{}, privkey string, optArgs ...interface{}) id: id, PrivKey: privkey, Label: label, - ReScan: rescan, + Rescan: rescan, }, nil } @@ -3567,12 +3567,12 @@ func (cmd *ImportPrivKeyCmd) MarshalJSON() ([]byte, error) { }, } - if cmd.Label != "" || cmd.ReScan { + if cmd.Label != "" || cmd.Rescan { raw.Params = append(raw.Params, cmd.Label) } - if cmd.ReScan { - raw.Params = append(raw.Params, cmd.ReScan) + if cmd.Rescan { + raw.Params = append(raw.Params, cmd.Rescan) } return json.Marshal(raw) } diff --git a/jsoncmd_test.go b/jsoncmd_test.go index 8d09fd83..c206a604 100644 --- a/jsoncmd_test.go +++ b/jsoncmd_test.go @@ -684,7 +684,7 @@ var jsoncmdtests = []struct { id: float64(1), PrivKey: "somereallongprivatekey", Label: "some text", - ReScan: false, + Rescan: false, }, }, {