ReScan -> Rescan

This commit is contained in:
Josh Rickmar 2013-11-18 09:13:02 -05:00
parent d20f958c92
commit 9dbf75029f
2 changed files with 6 additions and 6 deletions

View file

@ -3510,7 +3510,7 @@ type ImportPrivKeyCmd struct {
id interface{} id interface{}
PrivKey string PrivKey string
Label string Label string
ReScan bool Rescan bool
} }
// Enforce that ImportPrivKeyCmd satisifies the Cmd interface. // Enforce that ImportPrivKeyCmd satisifies the Cmd interface.
@ -3542,7 +3542,7 @@ func NewImportPrivKeyCmd(id interface{}, privkey string, optArgs ...interface{})
id: id, id: id,
PrivKey: privkey, PrivKey: privkey,
Label: label, Label: label,
ReScan: rescan, Rescan: rescan,
}, nil }, 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) raw.Params = append(raw.Params, cmd.Label)
} }
if cmd.ReScan { if cmd.Rescan {
raw.Params = append(raw.Params, cmd.ReScan) raw.Params = append(raw.Params, cmd.Rescan)
} }
return json.Marshal(raw) return json.Marshal(raw)
} }

View file

@ -684,7 +684,7 @@ var jsoncmdtests = []struct {
id: float64(1), id: float64(1),
PrivKey: "somereallongprivatekey", PrivKey: "somereallongprivatekey",
Label: "some text", Label: "some text",
ReScan: false, Rescan: false,
}, },
}, },
{ {