lnwallet: remove GetTransaction method from BlockChainIO

This commit is contained in:
Olaoluwa Osuntokun committed 2017-06-05 19:12:42 -07:00
1 parent 0e8af209bd
commit 7d62293d4a
2 files changed
+1 -5

No files matched your search

-4
View File
@@ -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)
+1 -1
View File
@@ -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)
}