From 66e12315808832fa7dba14e2c47add4f37061f1b Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 27 Oct 2017 16:26:01 +0200 Subject: [PATCH] check seed_version is not too high --- lib/storage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/storage.py b/lib/storage.py index fb526cf65..c14e2bc04 100644 --- a/lib/storage.py +++ b/lib/storage.py @@ -454,6 +454,8 @@ class WalletStorage(PrintError): seed_version = self.get('seed_version') if not seed_version: seed_version = OLD_SEED_VERSION if len(self.get('master_public_key','')) == 128 else NEW_SEED_VERSION + if seed_version > FINAL_SEED_VERSION: + raise BaseException('This version of Electrum is too old to open this wallet') if seed_version >=12: return seed_version if seed_version not in [OLD_SEED_VERSION, NEW_SEED_VERSION]: