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

+3 -3
View File
@@ -1053,7 +1053,7 @@ func testBatchChanFunding(ht *lntest.HarnessTest) {
ht.AssertTopologyChannelOpen(alice, chanPoint3)
// Check if the change type from the batch_open_channel funding is P2TR.
rawTx := ht.Miner.GetRawTransaction(txHash)
rawTx := ht.GetRawTransaction(txHash)
require.Len(ht, rawTx.MsgTx().TxOut, 5)
// For calculating the change output index we use the formula for the
@@ -1182,9 +1182,9 @@ func deriveFundingShim(ht *lntest.HarnessTest, carol, dave *node.HarnessNode,
var txid *chainhash.Hash
targetOutputs := []*wire.TxOut{fundingOutput}
if publish {
txid = ht.Miner.SendOutputsWithoutChange(targetOutputs, 5)
txid = ht.SendOutputsWithoutChange(targetOutputs, 5)
} else {
tx := ht.Miner.CreateTransaction(targetOutputs, 5)
tx := ht.CreateTransaction(targetOutputs, 5)
txHash := tx.TxHash()
txid = &txHash