mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
godoc: address copy-paste errors accross the codebase
This commit is contained in:
parent
c1036ff705
commit
a9977dd5f4
26 changed files with 62 additions and 50 deletions
6
swap.go
6
swap.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue