publishIfNeeded

fun publishIfNeeded(txs: List<Transaction>, irrevocablySpent: Map<OutPoint, Transaction>, channelId: ByteVector32): List<ChannelAction.Blockchain.PublishTx>

This helper method will publish txs only if they haven't yet reached minDepth.