godoc: address copy-paste errors accross the codebase

This commit is contained in:
Slyghtning 2026-02-28 10:29:25 +01:00
parent c1036ff705
commit a9977dd5f4
No known key found for this signature in database
GPG key ID: F82D456EA023C9BF
26 changed files with 62 additions and 50 deletions

View file

@ -50,10 +50,12 @@ func newSwapKit(hash lntypes.Hash, swapType swap.Type, cfg *swapConfig,
}
}
// IsTaproot returns true if the swap referenced by the passed swap contract
// IsTaprootSwap returns true if the swap referenced by the passed swap contract
// uses the v3 (taproot) htlc.
func IsTaprootSwap(swapContract *loopdb.SwapContract) bool {
return utils.GetHtlcScriptVersion(swapContract.ProtocolVersion) == swap.HtlcV3
version := utils.GetHtlcScriptVersion(swapContract.ProtocolVersion)
return version == swap.HtlcV3
}
// swapInfo constructs and returns a filled SwapInfo from