From 807d0c66fcb17c6fb9f60fc13fc0989d183cf8a1 Mon Sep 17 00:00:00 2001 From: Ivan Shumkov Date: Sun, 29 Oct 2023 11:00:44 +0700 Subject: [PATCH] fix: instant lock version higher than 1 is not supported --- lib/instantlock/instantlock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/instantlock/instantlock.js b/lib/instantlock/instantlock.js index 6d559b8f6..dd4a9f1ec 100644 --- a/lib/instantlock/instantlock.js +++ b/lib/instantlock/instantlock.js @@ -75,7 +75,7 @@ class InstantLock { signature, }; - if (version === 1) { + if (version >= 1) { result.version = version; result.cyclehash = cyclehash; } @@ -406,7 +406,7 @@ class InstantLock { signature: this.signature.toString('hex'), }; - if (this.version === 1) { + if (this.version >= 1) { result.version = this.version; result.cyclehash = this.cyclehash; }