Don't add obsolete old signature format

This commit is contained in:
shortcutme 2017-06-13 14:20:58 +02:00
parent bc02de4b18
commit eefe7e1b5a
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -611,10 +611,6 @@ class ContentManager(object):
new_content["signs"] = {}
new_content["signs"][privatekey_address] = sign
if inner_path == "content.json": # To root content.json add old format sign for backward compatibility
oldsign_content = json.dumps(new_content, sort_keys=True)
new_content["sign"] = CryptBitcoin.signOld(oldsign_content, privatekey)
if not self.verifyContent(inner_path, new_content):
self.log.error("Sign failed: Invalid content")
return False