parent
206d5526b0
commit
3ab6db5c7d
1 changed files with 6 additions and 0 deletions
|
@ -20,6 +20,7 @@ import (
|
|||
"encoding/hex"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/conformal/btcchain"
|
||||
"github.com/conformal/btcjson"
|
||||
"github.com/conformal/btcutil"
|
||||
"github.com/conformal/btcwallet/txstore"
|
||||
|
@ -968,6 +969,11 @@ func (am *AccountManager) ListUnspent(minconf, maxconf int,
|
|||
if int(confs) < minconf || int(confs) > maxconf {
|
||||
continue
|
||||
}
|
||||
if credit.IsCoinbase() {
|
||||
if !credit.Confirmed(btcchain.CoinbaseMaturity, bs.Height) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
||||
_, addrs, _, _ := credit.Addresses(activeNet.Params)
|
||||
if filter {
|
||||
|
|
Loading…
Reference in a new issue