Use libsodium's s < L check, instead checking that libsodium checks that.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user