lnwallet: update GetUtxo to accept the pkScript to comply with new gcs filter
This commit is contained in:
parent
21451bf251
commit
f9f9eefab4
@ -237,10 +237,12 @@ type BlockChainIO interface {
|
||||
|
||||
// GetUtxo attempts to return the passed outpoint if it's still a
|
||||
// member of the utxo set. The passed height hint should be the "birth
|
||||
// height" of the passed outpoint. In the case that the output is in
|
||||
// height" of the passed outpoint. The script passed should be the
|
||||
// script that the oupoint creates. In the case that the output is in
|
||||
// the UTXO set, then the output corresponding to that output is
|
||||
// returned. Otherwise, a non-nil error will be returned.
|
||||
GetUtxo(op *wire.OutPoint, heightHint uint32) (*wire.TxOut, error)
|
||||
GetUtxo(op *wire.OutPoint, pkScript []byte,
|
||||
heightHint uint32) (*wire.TxOut, error)
|
||||
|
||||
// GetBlockHash returns the hash of the block in the best blockchain
|
||||
// at the given height.
|
||||
|
@ -8,12 +8,12 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/lightningnetwork/lnd/keychain"
|
||||
"github.com/btcsuite/btcd/btcec"
|
||||
"github.com/btcsuite/btcd/chaincfg/chainhash"
|
||||
"github.com/btcsuite/btcd/txscript"
|
||||
"github.com/btcsuite/btcd/wire"
|
||||
"github.com/btcsuite/btcutil"
|
||||
"github.com/lightningnetwork/lnd/keychain"
|
||||
)
|
||||
|
||||
// TestCommitmentSpendValidation test the spendability of both outputs within
|
||||
|
Loading…
Reference in New Issue
Block a user