make sure claimed ver is true
This commit is contained in:
parent
7d22bfffa5
commit
12b2bbfa26
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ import time
|
|||
from copy import deepcopy
|
||||
from googlefinance import getQuotes
|
||||
from lbrynet.conf import CURRENCIES
|
||||
from lbrynet.core import utils
|
||||
import logging
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
@ -147,5 +148,7 @@ class Metadata(dict):
|
|||
self._load_revision(version, metadata)
|
||||
if not metadata:
|
||||
self.meta_version = version
|
||||
if utils.version_is_greater_than(self.meta_version, "0.0.1"):
|
||||
assert self.meta_version == self['ver'], "version mismatch"
|
||||
break
|
||||
assert metadata == {}, "Unknown metadata keys: %s" % json.dumps(metadata.keys())
|
||||
|
|
Loading…
Reference in a new issue