Fix longer signers_sign signing

This commit is contained in:
shortcutme 2017-09-02 14:26:39 +02:00
parent 8fdfba97d9
commit b584c586ec
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -622,9 +622,8 @@ class ContentManager(object):
if inner_path == "content.json" and privatekey_address == self.site.address: if inner_path == "content.json" and privatekey_address == self.site.address:
# If signing using the root key, then sign the valid signers # If signing using the root key, then sign the valid signers
new_content["signers_sign"] = CryptBitcoin.sign( signers_data = "%s:%s" % (new_content["signs_required"], ",".join(valid_signers))
"%s:%s" % (new_content["signs_required"], ",".join(valid_signers)), privatekey new_content["signers_sign"] = CryptBitcoin.sign(str(signers_data), privatekey)
)
if not new_content["signers_sign"]: if not new_content["signers_sign"]:
self.log.info("Old style address, signers_sign is none") self.log.info("Old style address, signers_sign is none")