Skip to content

Commit

Permalink
Fix bug in bumpFee
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacia committed Aug 20, 2018
1 parent cc9f64c commit c0646c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sortsignsend.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,14 @@ func (w *SPVWallet) BumpFee(txid chainhash.Hash) (*chainhash.Hash, error) {
if err != nil {
return nil, err
}
h, err := hex.DecodeString(u.Op.Hash.String())
if err != nil {
return nil, err
}
in := wallet.TransactionInput{
LinkedAddress: addr,
OutpointIndex: u.Op.Index,
OutpointHash: u.Op.Hash.CloneBytes(),
OutpointHash: h,
Value: u.Value,
}
transactionID, err := w.SweepAddress([]wallet.TransactionInput{in}, nil, key, nil, wallet.FEE_BUMP)
Expand Down

0 comments on commit c0646c1

Please sign in to comment.