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:
1 file changed
+2
@@ -1506,6 +1506,8 @@ func publishTxAndConfirmSweep(ht *lntemp.HarnessTest, node *node.HarnessNode,
|
|||||||
tx *wire.MsgTx, estimatedWeight int64,
|
tx *wire.MsgTx, estimatedWeight int64,
|
||||||
spendRequest *chainrpc.SpendRequest, sweepAddr string) {
|
spendRequest *chainrpc.SpendRequest, sweepAddr string) {
|
||||||
|
|
||||||
|
ht.Helper()
|
||||||
|
|
||||||
// Before we publish the tx that spends the p2tr transaction, we want to
|
// 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
|
// register a spend listener that we expect to fire after mining the
|
||||||
// block.
|
// block.
|
||||||
|
|||||||
Reference in new issue
Block a user