Skip to content

Commit

Permalink
Merge pull request #43 from amangale/modify_spend
Browse files Browse the repository at this point in the history
Add referenceID to spend
  • Loading branch information
cpacia committed Nov 29, 2018
2 parents 91d1e84 + 4dc5c8e commit 4da6964
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sortsignsend.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
"encoding/hex"
"errors"
"fmt"
"time"

"github.com/OpenBazaar/wallet-interface"
"github.com/btcsuite/btcd/blockchain"
"github.com/btcsuite/btcd/btcec"
Expand All @@ -21,7 +23,6 @@ import (
"github.com/btcsuite/btcutil/txsort"
"github.com/btcsuite/btcwallet/wallet/txauthor"
"github.com/btcsuite/btcwallet/wallet/txrules"
"time"
)

func (s *SPVWallet) Broadcast(tx *wire.MsgTx) error {
Expand Down Expand Up @@ -92,7 +93,7 @@ func (w *SPVWallet) gatherCoins() map[coinset.Coin]*hd.ExtendedKey {
return m
}

func (w *SPVWallet) Spend(amount int64, addr btc.Address, feeLevel wallet.FeeLevel) (*chainhash.Hash, error) {
func (w *SPVWallet) Spend(amount int64, addr btc.Address, feeLevel wallet.FeeLevel, referenceID string) (*chainhash.Hash, error) {
tx, err := w.buildTx(amount, addr, feeLevel, nil)
if err != nil {
return nil, err
Expand Down

0 comments on commit 4da6964

Please sign in to comment.