From b6ea01e071d1fcd9330512790f4704502c5bdbd7 Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Tue, 16 Jan 2018 08:36:16 +0100 Subject: [PATCH] Remove namespace alert_tests when including alert test data --- src/test/alert_tests.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/test/alert_tests.cpp b/src/test/alert_tests.cpp index d790049f1..39fdefd67 100644 --- a/src/test/alert_tests.cpp +++ b/src/test/alert_tests.cpp @@ -8,9 +8,7 @@ #include "chain.h" #include "chainparams.h" #include "clientversion.h" -namespace alert_tests { #include "data/alertTests.raw.h" -} #include "serialize.h" #include "streams.h" #include "utilstrencodings.h" @@ -112,7 +110,7 @@ struct ReadAlerts : public TestingSetup { ReadAlerts() { - std::vector vch(alert_tests::alertTests, alert_tests::alertTests + sizeof(alert_tests::alertTests)); + std::vector vch(alertTests, alertTests + sizeof(alertTests)); CDataStream stream(vch, SER_DISK, CLIENT_VERSION); try { while (!stream.eof())