diff -U2 -r /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd/Streaming.cpp /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd/Streaming.cpp --- /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd/Streaming.cpp 2026-09-02 00:38:41.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd/Streaming.cpp 2026-09-01 23:53:12.000000000 +0000 @@ -1532,7 +1532,4 @@ void Stream::SendPackets (const std::list& packets) { - // the local destination is a reference and it can be gone already: a handler - // queued before the destination was stopped runs after it - if (m_Status == eStreamStatusTerminated) return; if (!m_RemoteLeaseSet) { diff -U2 -r /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd_client/Torrents.cpp /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd_client/Torrents.cpp --- /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd_client/Torrents.cpp 2026-09-02 00:38:41.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd_client/Torrents.cpp 2026-09-01 23:53:12.000000000 +0000 @@ -330,13 +330,9 @@ } - Torrent::Torrent (): + Torrent::Torrent (std::string_view buf): m_Length (0), m_PieceLength (0), m_IsComplete (false), m_IsStopped (false), m_Uploaded (0), m_Downloaded (0) { ResetStats (); - } - - Torrent::Torrent (std::string_view buf): Torrent () - { ParseDictionary (buf, [this](std::string_view key, std::string_view buf)->size_t { @@ -353,8 +349,4 @@ } - Torrent::Torrent (const InfoHash& infoHash): Torrent () - { - m_InfoHash = infoHash; - } size_t Torrent::ParsePieces (std::string_view buf) @@ -1736,8 +1728,4 @@ // all info received LogPrint (eLogDebug, "Torrents: ut_metadata ", m_RemoteMetadataSize, " bytes of info received"); - uint8_t digest[SHA_DIGEST_LENGTH]; - SHA1 (m_RemoteMetadata.data (), m_RemoteMetadata.size (), digest); - if (memcmp (m_Torrent->GetInfoHash ().data (), digest, SHA_DIGEST_LENGTH)) - LogPrint (eLogError, "Torrents: ut_metadata info doesn't match infoHash"); // TODO: update torrent // cleanup diff -U2 -r /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd_client/Torrents.h /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd_client/Torrents.h --- /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd_client/Torrents.h 2026-09-02 00:38:41.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd_client/Torrents.h 2026-09-01 23:53:12.000000000 +0000 @@ -157,8 +157,7 @@ public: - using InfoHash = std::array; + using InfoHash = std::array; Torrent (std::string_view buf); - Torrent (const InfoHash& infoHash); void ParseTrackerResponse (size_t trackerID, std::string_view buf); void HandleDatagramTrackerResponse (size_t trackerID, uint32_t interval, @@ -227,5 +226,4 @@ private: - Torrent (); size_t ParsePieces (std::string_view buf); size_t ParseInfo (std::string_view buf);