From 7d62293d4a40044f30bb972c506a303adcc28d22 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 24 May 2017 17:37:16 -0700 Subject: [PATCH] lnwallet: remove GetTransaction method from BlockChainIO --- lnwallet/interface.go | 4 ---- lnwallet/interface_test.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lnwallet/interface.go b/lnwallet/interface.go index 6159a02c..34556ab5 100644 --- a/lnwallet/interface.go +++ b/lnwallet/interface.go @@ -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) diff --git a/lnwallet/interface_test.go b/lnwallet/interface_test.go index 3998e0d4..1ac337fc 100644 --- a/lnwallet/interface_test.go +++ b/lnwallet/interface_test.go @@ -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) }