From edfc2c6124a2f358f214072c095359920c6fca34 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Fri, 6 Jul 2018 16:03:41 -0400 Subject: [PATCH] fix to make sd_hash more deterministic --- lbrynet/core/StreamDescriptor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbrynet/core/StreamDescriptor.py b/lbrynet/core/StreamDescriptor.py index 32a220f1c..d0dd951ad 100644 --- a/lbrynet/core/StreamDescriptor.py +++ b/lbrynet/core/StreamDescriptor.py @@ -73,7 +73,7 @@ class StreamDescriptorWriter(object): pass def create_descriptor(self, sd_info): - return self._write_stream_descriptor(json.dumps(sd_info)) + return self._write_stream_descriptor(json.dumps(sd_info, sort_keys=True)) def _write_stream_descriptor(self, raw_data): """This method must be overridden by subclasses to write raw data to