Skip to content

Commit

Permalink
Update for new createrawssrtx option
Browse files Browse the repository at this point in the history
  • Loading branch information
cjepson committed May 6, 2016
1 parent a5a51f5 commit e889894
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rawtransactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,15 +432,15 @@ func (r FutureCreateRawSSRtxResult) Receive() (*wire.MsgTx, error) {
// function on the returned instance.
//
// See CreateRawSSRtx for the blocking version and more details.
func (c *Client) CreateRawSSRtxAsync(inputs []dcrjson.TransactionInput) FutureCreateRawSSRtxResult {

cmd := dcrjson.NewCreateRawSSRtxCmd(inputs)
func (c *Client) CreateRawSSRtxAsync(inputs []dcrjson.TransactionInput, fee dcrutil.Amount) FutureCreateRawSSRtxResult {
feeF64 := fee.ToCoin()
cmd := dcrjson.NewCreateRawSSRtxCmd(inputs, &feeF64)
return c.sendCmd(cmd)
}

// CreateRawSSRtx returns a new SSR transactionm (revoking an sstx).
func (c *Client) CreateRawSSRtx(inputs []dcrjson.TransactionInput) (*wire.MsgTx, error) {
return c.CreateRawSSRtxAsync(inputs).Receive()
func (c *Client) CreateRawSSRtx(inputs []dcrjson.TransactionInput, fee dcrutil.Amount) (*wire.MsgTx, error) {
return c.CreateRawSSRtxAsync(inputs, fee).Receive()
}

// FutureSendRawTransactionResult is a future promise to deliver the result
Expand Down

0 comments on commit e889894

Please sign in to comment.