aboutsummaryrefslogtreecommitdiff
path: root/src/qt/test/paymentservertests.cpp
diff options
context:
space:
mode:
authorfanquake <[email protected]>2019-08-06 16:50:42 +0800
committerfanquake <[email protected]>2019-08-06 16:50:42 +0800
commit2f37163caf244acbe5fc715f2321aebc231522bc (patch)
treeb6c0c5c5f213ab7dbf20ec14db70306418480abc /src/qt/test/paymentservertests.cpp
parentMerge #16530: doc: Fix grammar and punctuation in developer notes (diff)
downloaddiscoin-2f37163caf244acbe5fc715f2321aebc231522bc.tar.xz
discoin-2f37163caf244acbe5fc715f2321aebc231522bc.zip
test: only include and init openSSL where it's actually used
Diffstat (limited to 'src/qt/test/paymentservertests.cpp')
-rw-r--r--src/qt/test/paymentservertests.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/test/paymentservertests.cpp b/src/qt/test/paymentservertests.cpp
index 6cafe0546..eca468a6a 100644
--- a/src/qt/test/paymentservertests.cpp
+++ b/src/qt/test/paymentservertests.cpp
@@ -16,6 +16,7 @@
#include <test/setup_common.h>
#include <util/strencodings.h>
+#include <openssl/ssl.h>
#include <openssl/x509.h>
#include <openssl/x509_vfy.h>
@@ -66,6 +67,7 @@ static SendCoinsRecipient handleRequest(PaymentServer* server, std::vector<unsig
void PaymentServerTests::paymentServerTests()
{
+ SSL_library_init();
BasicTestingSetup testing_setup(CBaseChainParams::MAIN);
auto node = interfaces::MakeNode();
OptionsModel optionsModel(*node);