mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-23 11:27:38 +08:00
log corruption case
This commit is contained in:
@@ -500,7 +500,9 @@ def parse_mutable_data(mutable_data_json_txt, public_key, public_key_hash=None,
|
||||
if not mutable_data_json_txt.startswith("bsk2."):
|
||||
# raw data; will authenticate with data hash
|
||||
raw = True
|
||||
assert data_hash
|
||||
if data_hash is None:
|
||||
log.error("Corrupt data: data text does not start with 'bsk2.', and no data hash given")
|
||||
return None
|
||||
|
||||
return parse_mutable_data_v2(mutable_data_json_txt, public_key, public_key_hash=public_key_hash, data_hash=data_hash, raw=raw)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user