Mark announces with bad ciphertext as rejected

merge-requests/30/head
Bob Mottram 2021-11-22 12:25:35 +00:00
parent 44308df999
commit e48e2a0fd1
1 changed files with 3 additions and 0 deletions

View File

@ -4604,6 +4604,9 @@ def downloadAnnounce(session, baseDir: str, httpPrefix: str,
return None
if invalidCiphertext(contentStr):
_rejectAnnounce(announceFilename,
baseDir, nickname, domain, postId,
recentPostsCache)
print('WARN: Invalid ciphertext within announce ' +
str(announcedJson))
return None