Update btcchain import paths to new location.
This commit is contained in:
parent
6d4889ffb0
commit
175875c9bd
4 changed files with 8 additions and 8 deletions
|
@ -23,7 +23,7 @@ import (
|
|||
"sort"
|
||||
"time"
|
||||
|
||||
"github.com/btcsuite/btcchain"
|
||||
"github.com/btcsuite/btcd/blockchain"
|
||||
"github.com/btcsuite/btcd/txscript"
|
||||
"github.com/btcsuite/btcutil"
|
||||
"github.com/btcsuite/btcwallet/keystore"
|
||||
|
@ -350,7 +350,7 @@ func (w *Wallet) findEligibleOutputs(minconf int, bs *keystore.BlockStamp) ([]tx
|
|||
// Coinbase transactions must have have reached maturity
|
||||
// before their outputs may be spent.
|
||||
if unspent[i].IsCoinbase() {
|
||||
target := btcchain.CoinbaseMaturity
|
||||
target := blockchain.CoinbaseMaturity
|
||||
if !unspent[i].Confirmed(target, bs.Height) {
|
||||
continue
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
package txstore
|
||||
|
||||
import (
|
||||
"github.com/btcsuite/btcchain"
|
||||
"github.com/btcsuite/btcd/blockchain"
|
||||
"github.com/btcsuite/btcd/txscript"
|
||||
"github.com/btcsuite/btcjson"
|
||||
"github.com/btcsuite/btcnet"
|
||||
|
@ -125,7 +125,7 @@ func (c *Credit) Category(chainHeight int32) CreditCategory {
|
|||
|
||||
func (c *Credit) category(chainHeight int32) CreditCategory {
|
||||
if c.isCoinbase() {
|
||||
if confirmed(btcchain.CoinbaseMaturity, c.BlockHeight, chainHeight) {
|
||||
if confirmed(blockchain.CoinbaseMaturity, c.BlockHeight, chainHeight) {
|
||||
return CreditGenerate
|
||||
}
|
||||
return CreditImmature
|
||||
|
|
|
@ -24,7 +24,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/btcsuite/btcchain"
|
||||
"github.com/btcsuite/btcd/blockchain"
|
||||
"github.com/btcsuite/btcd/txscript"
|
||||
"github.com/btcsuite/btcnet"
|
||||
"github.com/btcsuite/btcutil"
|
||||
|
@ -1251,7 +1251,7 @@ func (s *Store) balance(minConf int, chainHeight int32) (btcutil.Amount, error)
|
|||
for _, b := range s.blocks {
|
||||
if confirmed(b.Height) {
|
||||
bal += b.amountDeltas.Spendable
|
||||
if confirms(b.Height) >= btcchain.CoinbaseMaturity {
|
||||
if confirms(b.Height) >= blockchain.CoinbaseMaturity {
|
||||
bal += b.amountDeltas.Reward
|
||||
}
|
||||
continue
|
||||
|
|
|
@ -26,7 +26,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/btcsuite/btcchain"
|
||||
"github.com/btcsuite/btcd/blockchain"
|
||||
"github.com/btcsuite/btcjson"
|
||||
"github.com/btcsuite/btcnet"
|
||||
"github.com/btcsuite/btcutil"
|
||||
|
@ -941,7 +941,7 @@ func (w *Wallet) ListUnspent(minconf, maxconf int,
|
|||
continue
|
||||
}
|
||||
if credit.IsCoinbase() {
|
||||
if !credit.Confirmed(btcchain.CoinbaseMaturity, bs.Height) {
|
||||
if !credit.Confirmed(blockchain.CoinbaseMaturity, bs.Height) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue