Allow verbose param on btcctl getrawtransaction.

This commit is contained in:
Dave Collins 2013-11-14 12:19:20 -06:00
parent c3a3fbcabf
commit e3eca752da

View file

@ -182,7 +182,10 @@ func makeGetRawMempool(args []interface{}) (btcjson.Cmd, error) {
// makeRawTransaction generates the cmd structure for
// getrawtransaction comands.
func makeGetRawTransaction(args []interface{}) (btcjson.Cmd, error) {
i := args[1].(int)
i := 0
if len(args) > 1 {
i = args[1].(int)
}
bi := i != 0
return btcjson.NewGetRawTransactionCmd("btcctl", args[0].(string), bi)