taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 76d2def56349a9190b26591dd75b5a0f17697341
parent fc02e229d9494b19461d11934036690e74773e2a
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat,  1 Jul 2017 14:06:39 +0200

consider client age in commpatibility check

Diffstat:
Msrc/libtoolVersion.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libtoolVersion.ts b/src/libtoolVersion.ts @@ -49,7 +49,7 @@ export function compare(me: string, other: string): VersionMatchResult|undefined return undefined; } - const compatible = (meVer.current <= otherVer.current && + const compatible = (meVer.current - meVer.age <= otherVer.current && meVer.current >= (otherVer.current - otherVer.age)); const currentCmp = Math.sign(meVer.current - otherVer.current);