lntest/itest: make publishTxAndConfirmSweep a test helper

Calling ht.Helper() means we'll get the proper line number if an error
hapens.
This commit is contained in:
Olaoluwa Osuntokun
2023-01-23 21:07:00 -08:00
parent 843c62b59d
commit 8ab598e40c

View File

@@ -1506,6 +1506,8 @@ func publishTxAndConfirmSweep(ht *lntemp.HarnessTest, node *node.HarnessNode,
tx *wire.MsgTx, estimatedWeight int64,
spendRequest *chainrpc.SpendRequest, sweepAddr string) {
ht.Helper()
// Before we publish the tx that spends the p2tr transaction, we want to
// register a spend listener that we expect to fire after mining the
// block.