mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-07-24 16:58:11 -07:00
Cleanup
This commit is contained in:
@@ -691,9 +691,6 @@ class Resource:
|
|||||||
RNS.log(f"Decompressed resource exceeded maximum decompressed size. The resource was rejected.", RNS.LOG_ERROR)
|
RNS.log(f"Decompressed resource exceeded maximum decompressed size. The resource was rejected.", RNS.LOG_ERROR)
|
||||||
return
|
return
|
||||||
|
|
||||||
if self.compressed: self.data = bz2.decompress(data)
|
|
||||||
else: self.data = data
|
|
||||||
|
|
||||||
calculated_hash = RNS.Identity.full_hash(self.data+self.random_hash)
|
calculated_hash = RNS.Identity.full_hash(self.data+self.random_hash)
|
||||||
if calculated_hash == self.hash:
|
if calculated_hash == self.hash:
|
||||||
if self.has_metadata and self.segment_index == 1:
|
if self.has_metadata and self.segment_index == 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user