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