mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-10-26 19:01:53 -04:00
Cleanup
This commit is contained in:
parent
729dc8dc11
commit
78596b687a
1 changed files with 0 additions and 3 deletions
|
|
@ -691,9 +691,6 @@ class Resource:
|
|||
RNS.log(f"Decompressed resource exceeded maximum decompressed size. The resource was rejected.", RNS.LOG_ERROR)
|
||||
return
|
||||
|
||||
if self.compressed: self.data = bz2.decompress(data)
|
||||
else: self.data = data
|
||||
|
||||
calculated_hash = RNS.Identity.full_hash(self.data+self.random_hash)
|
||||
if calculated_hash == self.hash:
|
||||
if self.has_metadata and self.segment_index == 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue