mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
itest: make WaitForTxInMempool a private method
This commit is contained in:
parent
16403da91e
commit
d9e9238b0c
@ -910,10 +910,10 @@ func saveProfilesPage(node *HarnessNode) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// WaitForTxInMempool blocks until the target txid is seen in the mempool. If
|
// waitForTxInMempool blocks until the target txid is seen in the mempool. If
|
||||||
// the transaction isn't seen within the network before the passed timeout,
|
// the transaction isn't seen within the network before the passed timeout,
|
||||||
// then an error is returned.
|
// then an error is returned.
|
||||||
func (n *NetworkHarness) WaitForTxInMempool(ctx context.Context,
|
func (n *NetworkHarness) waitForTxInMempool(ctx context.Context,
|
||||||
txid chainhash.Hash) error {
|
txid chainhash.Hash) error {
|
||||||
|
|
||||||
// Return immediately if harness has been torn down.
|
// Return immediately if harness has been torn down.
|
||||||
@ -1280,7 +1280,7 @@ func (n *NetworkHarness) CloseChannel(lnNode *HarnessNode,
|
|||||||
"%v", err)
|
"%v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if err := n.WaitForTxInMempool(ctx, *closeTxid); err != nil {
|
if err := n.waitForTxInMempool(ctx, *closeTxid); err != nil {
|
||||||
errChan <- fmt.Errorf("error while waiting for "+
|
errChan <- fmt.Errorf("error while waiting for "+
|
||||||
"broadcast tx: %v", err)
|
"broadcast tx: %v", err)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user