lntest+itest: finalize moving miner methods

This commit is contained in:
yyforyongyu authored and yyforyongyu committed 2024-07-23 21:30:07 +08:00
1 parent 6bd8baea38
commit be4dba5da6
18 files changed
+129 -55

No files matched your search

+2 -2
View File
@@ -97,7 +97,7 @@ func testNonStdSweepInner(ht *lntest.HarnessTest, address string) {
// Fetch the txid so we can grab the raw transaction.
txid := ht.AssertNumTxsInMempool(1)[0]
tx := ht.Miner.GetRawTransaction(txid)
tx := ht.GetRawTransaction(txid)
msgTx := tx.MsgTx()
@@ -111,7 +111,7 @@ func testNonStdSweepInner(ht *lntest.HarnessTest, address string) {
for _, inp := range msgTx.TxIn {
// Fetch the previous outpoint's value.
prevOut := inp.PreviousOutPoint
ptx := ht.Miner.GetRawTransaction(&prevOut.Hash)
ptx := ht.GetRawTransaction(&prevOut.Hash)
pout := ptx.MsgTx().TxOut[prevOut.Index]
inputVal += int(pout.Value)