ReScan -> Rescan
This commit is contained in:
parent
d20f958c92
commit
9dbf75029f
2 changed files with 6 additions and 6 deletions
10
jsoncmd.go
10
jsoncmd.go
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue