lnwallet: remove GetTransaction method from BlockChainIO

This commit is contained in:
Olaoluwa Osuntokun 2017-05-24 17:37:16 -07:00
parent 0e8af209bd
commit 7d62293d4a
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2
2 changed files with 1 additions and 5 deletions

@ -216,10 +216,6 @@ type BlockChainIO interface {
// returned. Otherwise, a non-nil error will be returned.
GetUtxo(op *wire.OutPoint, heightHint uint32) (*wire.TxOut, error)
// GetTransaction returns the full transaction identified by the passed
// transaction ID.
GetTransaction(txid *chainhash.Hash) (*wire.MsgTx, error)
// GetBlockHash returns the hash of the block in the best blockchain
// at the given height.
GetBlockHash(blockHeight int64) (*chainhash.Hash, error)

@ -1170,7 +1170,7 @@ func testSignOutputPrivateTweak(r *rpctest.Harness, w *lnwallet.LightningWallet,
// Query for the transaction generated above so we can located the
// index of our output.
tx, err := w.ChainIO.GetTransaction(txid)
tx, err := r.Node.Miner.GetRawtransaction(txid)
if err != nil {
t.Fatalf("unable to query for tx: %v", err)
}