Use libsodium's s < L check, instead checking that libsodium checks that.

This commit is contained in:
Taylor Hornby
2016-08-18 16:38:20 -06:00
parent a635d6e995
commit 2902ac7ce8
7 changed files with 62 additions and 44 deletions

View File

@@ -8,8 +8,7 @@
#endif
#include "init.h"
#include "sodium.h"
#include "crypto/common.h"
#include "addrman.h"
#include "amount.h"
#include "checkpoints.h"
@@ -907,7 +906,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
// ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log
// Initialize libsodium
if (sodium_init() == -1) {
if (init_and_check_sodium() == -1) {
return false;
}