Skip to content

Commit

Permalink
Add stake txscript types in ListUnspent to be spendable
Browse files Browse the repository at this point in the history
Fixes #131
  • Loading branch information
alexlyp committed Apr 1, 2016
1 parent 4387fa3 commit 976f14e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -2055,6 +2055,12 @@ func (w *Wallet) ListUnspent(minconf, maxconf int32,
spendable = true
case txscript.ScriptHashTy:
spendable = true
case txscript.StakeGenTy:
spendable = true
case txscript.StakeRevocationTy:
spendable = true
case txscript.StakeSubChangeTy:
spendable = true
case txscript.MultiSigTy:
for _, a := range addrs {
_, err := w.Manager.Address(a)
Expand Down

0 comments on commit 976f14e

Please sign in to comment.