@@ -77,9 +77,9 @@ type HarnessTest struct {
7777 // Embed the standbyNodes so we can easily access them via `ht.Alice`.
7878 standbyNodes
7979
80- // Miner is a reference to a running full node that can be used to
80+ // miner is a reference to a running full node that can be used to
8181 // create new blocks on the network.
82- Miner * miner.HarnessMiner
82+ miner * miner.HarnessMiner
8383
8484 // manager handles the start and stop of a given node.
8585 manager * nodeManager
@@ -188,7 +188,7 @@ func (h *HarnessTest) Start(chain node.BackendConfig,
188188 h .manager .feeServiceURL = h .feeService .URL ()
189189
190190 // Assemble the miner.
191- h .Miner = miner
191+ h .miner = miner
192192}
193193
194194// ChainBackendName returns the chain backend name used in the test.
@@ -254,7 +254,7 @@ func (h *HarnessTest) createAndSendOutput(target *node.HarnessNode,
254254 PkScript : addrScript ,
255255 Value : int64 (amt ),
256256 }
257- h .Miner .SendOutput (output , defaultMinerFeeRate )
257+ h .miner .SendOutput (output , defaultMinerFeeRate )
258258}
259259
260260// SetupRemoteSigningStandbyNodes starts the initial seeder nodes within the
@@ -371,7 +371,7 @@ func (h *HarnessTest) Stop() {
371371 h .stopChainBackend ()
372372
373373 // Stop the miner.
374- h .Miner .Stop ()
374+ h .miner .Stop ()
375375}
376376
377377// RunTestCase executes a harness test case. Any errors or panics will be
@@ -414,7 +414,7 @@ func (h *HarnessTest) Subtest(t *testing.T) *HarnessTest {
414414 st := & HarnessTest {
415415 T : t ,
416416 manager : h .manager ,
417- Miner : h .Miner ,
417+ miner : h .miner ,
418418 standbyNodes : h .standbyNodes ,
419419 feeService : h .feeService ,
420420 lndErrorChan : make (chan error , lndErrorChanSize ),
@@ -424,7 +424,7 @@ func (h *HarnessTest) Subtest(t *testing.T) *HarnessTest {
424424 st .runCtx , st .cancel = context .WithCancel (h .runCtx )
425425
426426 // Inherit the subtest for the miner.
427- st .Miner .T = st .T
427+ st .miner .T = st .T
428428
429429 // Reset the standby nodes.
430430 st .resetStandbyNodes (t )
@@ -467,7 +467,7 @@ func (h *HarnessTest) Subtest(t *testing.T) *HarnessTest {
467467 st .shutdownNonStandbyNodes ()
468468
469469 // We require the mempool to be cleaned from the test.
470- require .Empty (st , st .Miner .GetRawMempool (), "mempool not " +
470+ require .Empty (st , st .miner .GetRawMempool (), "mempool not " +
471471 "cleaned, please mine blocks to clean them all." )
472472
473473 // Finally, cancel the run context. We have to do it here
@@ -1298,7 +1298,7 @@ func (h *HarnessTest) CloseChannelAssertPending(hn *node.HarnessNode,
12981298 pendingClose .ClosePending .Txid )
12991299
13001300 // Assert the closing tx is in the mempool.
1301- h .Miner .AssertTxInMempool (closeTxid )
1301+ h .miner .AssertTxInMempool (closeTxid )
13021302
13031303 return stream , closeTxid
13041304}
@@ -1396,7 +1396,7 @@ func (h *HarnessTest) fundCoins(amt btcutil.Amount, target *node.HarnessNode,
13961396 PkScript : addrScript ,
13971397 Value : int64 (amt ),
13981398 }
1399- h .Miner .SendOutput (output , defaultMinerFeeRate )
1399+ h .miner .SendOutput (output , defaultMinerFeeRate )
14001400
14011401 // Encode the pkScript in hex as this the format that it will be
14021402 // returned via rpc.
@@ -1903,7 +1903,7 @@ func (h *HarnessTest) CalculateTxFee(tx *wire.MsgTx) btcutil.Amount {
19031903 var balance btcutil.Amount
19041904 for _ , in := range tx .TxIn {
19051905 parentHash := in .PreviousOutPoint .Hash
1906- rawTx := h .Miner .GetRawTransaction (& parentHash )
1906+ rawTx := h .miner .GetRawTransaction (& parentHash )
19071907 parent := rawTx .MsgTx ()
19081908 value := parent .TxOut [in .PreviousOutPoint .Index ].Value
19091909
@@ -2121,12 +2121,12 @@ func (h *HarnessTest) ReceiveChannelEvent(
21212121func (h * HarnessTest ) GetOutputIndex (txid * chainhash.Hash , addr string ) int {
21222122 // We'll then extract the raw transaction from the mempool in order to
21232123 // determine the index of the p2tr output.
2124- tx := h .Miner .GetRawTransaction (txid )
2124+ tx := h .miner .GetRawTransaction (txid )
21252125
21262126 p2trOutputIndex := - 1
21272127 for i , txOut := range tx .MsgTx ().TxOut {
21282128 _ , addrs , _ , err := txscript .ExtractPkScriptAddrs (
2129- txOut .PkScript , h .Miner .ActiveNet ,
2129+ txOut .PkScript , h .miner .ActiveNet ,
21302130 )
21312131 require .NoError (h , err )
21322132
0 commit comments