diff --git a/util/btcctl/btcctl.go b/util/btcctl/btcctl.go index e1eee3a1..e788b99c 100644 --- a/util/btcctl/btcctl.go +++ b/util/btcctl/btcctl.go @@ -78,6 +78,7 @@ var commandHandlers = map[string]*handlerData{ makeSendFrom, "
[minconf=1] [comment] [comment-to]"}, "sendmany": &handlerData{2, 2, displayGeneric, []conversionHandler{nil, nil, toInt, nil}, makeSendMany, " <{\"address\":amount,...}> [minconf=1] [comment]"}, "sendrawtransaction": &handlerData{1, 0, displayGeneric, nil, makeSendRawTransaction, ""}, + "settxfee": &handlerData{1, 0, displayGeneric, []conversionHandler{toSatoshi}, makeSetTxFee, ""}, "stop": &handlerData{0, 0, displayGeneric, nil, makeStop, ""}, "submitblock": &handlerData{1, 1, displayGeneric, nil, makeSubmitBlock, " [jsonparametersobject]"}, "verifychain": &handlerData{0, 2, displayJSONDump, []conversionHandler{toInt, toInt}, makeVerifyChain, "[level] [numblocks]"}, @@ -494,6 +495,11 @@ func makeSendRawTransaction(args []interface{}) (btcjson.Cmd, error) { return btcjson.NewSendRawTransactionCmd("btcctl", args[0].(string)) } +// makeSetTxFee generates the cmd structure for settxfee commands. +func makeSetTxFee(args []interface{}) (btcjson.Cmd, error) { + return btcjson.NewSetTxFeeCmd("btcctl", args[0].(int64)) +} + // makeStop generates the cmd structure for stop commands. func makeStop(args []interface{}) (btcjson.Cmd, error) { return btcjson.NewStopCmd("btcctl")