fix resolution

add broadcast flag
This commit is contained in:
Niko Storni 2019-01-29 21:41:28 +01:00
parent ec0eec8ac4
commit d33ac919d1
No known key found for this signature in database
GPG key ID: F37FE63398800368

View file

@ -157,6 +157,7 @@ func (d *Client) AccountFund(fromAccount string, toAccount string, amount string
"to_account": toAccount,
"amount": amount,
"outputs": outputs,
"broadcast": true,
})
}
@ -214,7 +215,7 @@ func (d *Client) Publish(name, filePath string, bid float64, options PublishOpti
}{
Name: name,
FilePath: filePath,
Bid: fmt.Sprintf("%.1f", bid),
Bid: fmt.Sprintf("%.6f", bid),
PublishOptions: &options,
}
structs.DefaultTagName = "json"
@ -225,7 +226,7 @@ func (d *Client) ChannelNew(name string, amount float64, accountID *string) (*Ch
response := new(ChannelNewResponse)
return response, d.call(response, "channel_new", map[string]interface{}{
"channel_name": name,
"amount": fmt.Sprintf("%.1f", amount),
"amount": fmt.Sprintf("%.6f", amount),
"account_id": accountID,
})
}