We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 843fe82 + a8dd2dc commit 21c85bcCopy full SHA for 21c85bc
swap.go
@@ -56,7 +56,9 @@ func GetHtlcScriptVersion(
56
protocolVersion loopdb.ProtocolVersion) swap.ScriptVersion {
57
58
// If the swap was initiated before we had our v3 script, use v2.
59
- if protocolVersion < loopdb.ProtocolVersionHtlcV3 {
+ if protocolVersion < loopdb.ProtocolVersionHtlcV3 ||
60
+ protocolVersion == loopdb.ProtocolVersionUnrecorded {
61
+
62
return swap.HtlcV2
63
}
64
0 commit comments