Remove namespace alert_tests when including alert test data
This commit is contained in:
parent
7939a23e3b
commit
b6ea01e071
@ -8,9 +8,7 @@
|
|||||||
#include "chain.h"
|
#include "chain.h"
|
||||||
#include "chainparams.h"
|
#include "chainparams.h"
|
||||||
#include "clientversion.h"
|
#include "clientversion.h"
|
||||||
namespace alert_tests {
|
|
||||||
#include "data/alertTests.raw.h"
|
#include "data/alertTests.raw.h"
|
||||||
}
|
|
||||||
#include "serialize.h"
|
#include "serialize.h"
|
||||||
#include "streams.h"
|
#include "streams.h"
|
||||||
#include "utilstrencodings.h"
|
#include "utilstrencodings.h"
|
||||||
@ -112,7 +110,7 @@ struct ReadAlerts : public TestingSetup
|
|||||||
{
|
{
|
||||||
ReadAlerts()
|
ReadAlerts()
|
||||||
{
|
{
|
||||||
std::vector<unsigned char> vch(alert_tests::alertTests, alert_tests::alertTests + sizeof(alert_tests::alertTests));
|
std::vector<unsigned char> vch(alertTests, alertTests + sizeof(alertTests));
|
||||||
CDataStream stream(vch, SER_DISK, CLIENT_VERSION);
|
CDataStream stream(vch, SER_DISK, CLIENT_VERSION);
|
||||||
try {
|
try {
|
||||||
while (!stream.eof())
|
while (!stream.eof())
|
||||||
|
Loading…
Reference in New Issue
Block a user