Update btcscript import paths to new location.
This commit is contained in:
parent
dca623d4ef
commit
b29aad9f09
2 changed files with 6 additions and 6 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
"math"
|
||||
"sync"
|
||||
|
||||
"github.com/btcsuite/btcscript"
|
||||
"github.com/btcsuite/btcd/txscript"
|
||||
"github.com/btcsuite/btcutil"
|
||||
"github.com/btcsuite/btcwire"
|
||||
)
|
||||
|
@ -255,8 +255,8 @@ func (bf *Filter) maybeAddOutpoint(pkScript []byte, outHash *btcwire.ShaHash, ou
|
|||
outpoint := btcwire.NewOutPoint(outHash, outIdx)
|
||||
bf.addOutPoint(outpoint)
|
||||
case btcwire.BloomUpdateP2PubkeyOnly:
|
||||
class := btcscript.GetScriptClass(pkScript)
|
||||
if class == btcscript.PubKeyTy || class == btcscript.MultiSigTy {
|
||||
class := txscript.GetScriptClass(pkScript)
|
||||
if class == txscript.PubKeyTy || class == txscript.MultiSigTy {
|
||||
outpoint := btcwire.NewOutPoint(outHash, outIdx)
|
||||
bf.addOutPoint(outpoint)
|
||||
}
|
||||
|
@ -283,7 +283,7 @@ func (bf *Filter) matchTxAndUpdate(tx *btcutil.Tx) bool {
|
|||
// from the client and avoids some potential races that could otherwise
|
||||
// occur.
|
||||
for i, txOut := range tx.MsgTx().TxOut {
|
||||
pushedData, err := btcscript.PushedData(txOut.PkScript)
|
||||
pushedData, err := txscript.PushedData(txOut.PkScript)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
@ -314,7 +314,7 @@ func (bf *Filter) matchTxAndUpdate(tx *btcutil.Tx) bool {
|
|||
return true
|
||||
}
|
||||
|
||||
pushedData, err := btcscript.PushedData(txin.SignatureScript)
|
||||
pushedData, err := txscript.PushedData(txin.SignatureScript)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
|
|
@ -377,7 +377,7 @@ func (c *SimpleCoin) Value() btcutil.Amount {
|
|||
//
|
||||
// This can be used to determine what type of script the Coin uses
|
||||
// and extract standard addresses if possible using
|
||||
// btcscript.ExtractPkScriptAddrs for example.
|
||||
// txscript.ExtractPkScriptAddrs for example.
|
||||
func (c *SimpleCoin) PkScript() []byte {
|
||||
return c.txOut().PkScript
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue