@@ -321,7 +321,7 @@ func testAnchorReservedValue(ht *lntest.HarnessTest) {
321321
322322 // Alice tries to send all funds to an external address, the reserved
323323 // value must stay in her wallet.
324- minerAddr := ht .Miner . NewMinerAddress ()
324+ minerAddr := ht .NewMinerAddress ()
325325
326326 sweepReq = & lnrpc.SendCoinsRequest {
327327 Addr : minerAddr .String (),
@@ -544,7 +544,7 @@ func testAnchorThirdPartySpend(ht *lntest.HarnessTest) {
544544 // With the anchor output located, and the main commitment mined we'll
545545 // instruct the wallet to send all coins in the wallet to a new address
546546 // (to the miner), including unconfirmed change.
547- minerAddr := ht .Miner . NewMinerAddress ()
547+ minerAddr := ht .NewMinerAddress ()
548548 sweepReq := & lnrpc.SendCoinsRequest {
549549 Addr : minerAddr .String (),
550550 SendAll : true ,
@@ -574,7 +574,7 @@ func testAnchorThirdPartySpend(ht *lntest.HarnessTest) {
574574 // mine a transaction that double spends the output.
575575 thirdPartyAnchorSweep := genAnchorSweep (ht , aliceSweep , anchor .Outpoint )
576576 ht .Logf ("Third party tx=%v" , thirdPartyAnchorSweep .TxHash ())
577- ht .Miner . MineBlockWithTx (thirdPartyAnchorSweep )
577+ ht .MineBlockWithTx (thirdPartyAnchorSweep )
578578
579579 // At this point, we should no longer find Alice's transaction that
580580 // tried to sweep the anchor in her wallet.
@@ -673,7 +673,7 @@ func genAnchorSweep(ht *lntest.HarnessTest, aliceSweep *wire.MsgTx,
673673 aliceAnchorTxIn .Witness [0 ] = nil
674674 aliceAnchorTxIn .Sequence = 16
675675
676- minerAddr := ht .Miner . NewMinerAddress ()
676+ minerAddr := ht .NewMinerAddress ()
677677 addrScript , err := txscript .PayToAddrScript (minerAddr )
678678 require .NoError (ht , err , "unable to gen addr script" )
679679
@@ -766,7 +766,7 @@ func testRemoveTx(ht *lntest.HarnessTest) {
766766 // Mine a block and make sure the transaction previously broadcasted
767767 // shows up in alice's wallet although we removed the transaction from
768768 // the wallet when it was unconfirmed.
769- block := ht .Miner . MineBlocks ( 1 )[0 ]
769+ block := ht .MineBlocksAndAssertNumTxes ( 1 , 1 )[0 ]
770770 ht .AssertTxInBlock (block , txID )
771771
772772 // Verify that alice has 2 confirmed unspent utxos in her default
0 commit comments