mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
Merge pull request #571 from bhandras/unrecorded-proto-version-fixup
loop: correct htlc script version for very old swaps
This commit is contained in:
commit
21c85bcfee
1 changed files with 3 additions and 1 deletions
4
swap.go
4
swap.go
|
|
@ -56,7 +56,9 @@ func GetHtlcScriptVersion(
|
|||
protocolVersion loopdb.ProtocolVersion) swap.ScriptVersion {
|
||||
|
||||
// If the swap was initiated before we had our v3 script, use v2.
|
||||
if protocolVersion < loopdb.ProtocolVersionHtlcV3 {
|
||||
if protocolVersion < loopdb.ProtocolVersionHtlcV3 ||
|
||||
protocolVersion == loopdb.ProtocolVersionUnrecorded {
|
||||
|
||||
return swap.HtlcV2
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue