tcheck seed_version is not too high - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit e607a499c115675caae8088139ff4e0931524df0
DIR parent e9f7429fcdbaf46026a6d8a6fc1f6184149bf4dc
HTML Author: ThomasV <thomasv@electrum.org>
Date: Fri, 27 Oct 2017 16:26:01 +0200
check seed_version is not too high
Diffstat:
M lib/storage.py | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/lib/storage.py b/lib/storage.py
t@@ -453,6 +453,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==14 and self.get('seed_type') == 'segwit':
self.raise_unsupported_version(seed_version)
if seed_version >=12: