add importwallet to btcctl
This commit is contained in:
parent
2ae7cb8ee2
commit
5fcdfb040a
1 changed files with 7 additions and 0 deletions
|
@ -82,6 +82,7 @@ var commandHandlers = map[string]*handlerData{
|
|||
"getwork": {0, 1, displayJSONDump, nil, makeGetWork, "[data]"},
|
||||
"help": {0, 1, displayGeneric, nil, makeHelp, "[commandName]"},
|
||||
"importprivkey": {1, 2, displayGeneric, []conversionHandler{nil, nil, toBool}, makeImportPrivKey, "<wifprivkey> [label] [rescan=true]"},
|
||||
"importwallet": {1, 0, displayGeneric, nil, makeImportWallet, "<filename>"},
|
||||
"keypoolrefill": {0, 1, displayGeneric, []conversionHandler{toInt}, makeKeyPoolRefill, "[newsize]"},
|
||||
"listaccounts": {0, 1, displayJSONDump, []conversionHandler{toInt}, makeListAccounts, "[minconf=1]"},
|
||||
"listaddressgroupings": {0, 0, displayJSONDump, nil, makeListAddressGroupings, ""},
|
||||
|
@ -517,6 +518,12 @@ func makeImportPrivKey(args []interface{}) (btcjson.Cmd, error) {
|
|||
return btcjson.NewImportPrivKeyCmd("btcctl", args[0].(string), optargs...)
|
||||
}
|
||||
|
||||
// makeImportWallet generates the cmd structure for
|
||||
// importwallet commands.
|
||||
func makeImportWallet(args []interface{}) (btcjson.Cmd, error) {
|
||||
return btcjson.NewImportWalletCmd("btcctl", args[0].(string))
|
||||
}
|
||||
|
||||
// makeKeyPoolRefill generates the cmd structure for keypoolrefill commands.
|
||||
func makeKeyPoolRefill(args []interface{}) (btcjson.Cmd, error) {
|
||||
var optargs = make([]uint, 0, 1)
|
||||
|
|
Loading…
Reference in a new issue