add listlockunspent to btcctl
This commit is contained in:
parent
0951ffa1c7
commit
ed4ffc44a1
1 changed files with 6 additions and 0 deletions
|
@ -80,6 +80,7 @@ var commandHandlers = map[string]*handlerData{
|
||||||
"keypoolrefill": &handlerData{0, 1, displayGeneric, []conversionHandler{toInt}, makeKeyPoolRefill, "[newsize]"},
|
"keypoolrefill": &handlerData{0, 1, displayGeneric, []conversionHandler{toInt}, makeKeyPoolRefill, "[newsize]"},
|
||||||
"listaccounts": &handlerData{0, 1, displayJSONDump, []conversionHandler{toInt}, makeListAccounts, "[minconf=1]"},
|
"listaccounts": &handlerData{0, 1, displayJSONDump, []conversionHandler{toInt}, makeListAccounts, "[minconf=1]"},
|
||||||
"listaddressgroupings": &handlerData{0, 0, displayJSONDump, nil, makeListAddressGroupings, ""},
|
"listaddressgroupings": &handlerData{0, 0, displayJSONDump, nil, makeListAddressGroupings, ""},
|
||||||
|
"listlockunspent": &handlerData{0, 0, displayJSONDump, nil, makeListLockUnspent, ""},
|
||||||
"listsinceblock": &handlerData{0, 2, displayJSONDump, []conversionHandler{nil, toInt}, makeListSinceBlock, "[blockhash] [minconf=10]"},
|
"listsinceblock": &handlerData{0, 2, displayJSONDump, []conversionHandler{nil, toInt}, makeListSinceBlock, "[blockhash] [minconf=10]"},
|
||||||
"listtransactions": &handlerData{0, 3, displayJSONDump, []conversionHandler{nil, toInt, toInt}, makeListTransactions, "[account] [count=10] [from=0]"},
|
"listtransactions": &handlerData{0, 3, displayJSONDump, []conversionHandler{nil, toInt, toInt}, makeListTransactions, "[account] [count=10] [from=0]"},
|
||||||
"ping": &handlerData{0, 0, displayGeneric, nil, makePing, ""},
|
"ping": &handlerData{0, 0, displayGeneric, nil, makePing, ""},
|
||||||
|
@ -492,6 +493,11 @@ func makeListAddressGroupings(args []interface{}) (btcjson.Cmd, error) {
|
||||||
return btcjson.NewListAddressGroupingsCmd("btcctl")
|
return btcjson.NewListAddressGroupingsCmd("btcctl")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// makeListLockUnspent generates the cmd structure for listlockunspent commands.
|
||||||
|
func makeListLockUnspent(args []interface{}) (btcjson.Cmd, error) {
|
||||||
|
return btcjson.NewListLockUnspentCmd("btcctl")
|
||||||
|
}
|
||||||
|
|
||||||
// makeListSinceBlock generates the cmd structure for
|
// makeListSinceBlock generates the cmd structure for
|
||||||
// listsinceblock commands.
|
// listsinceblock commands.
|
||||||
func makeListSinceBlock(args []interface{}) (btcjson.Cmd, error) {
|
func makeListSinceBlock(args []interface{}) (btcjson.Cmd, error) {
|
||||||
|
|
Loading…
Reference in a new issue