mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
common changes
This commit is contained in:
parent
1d278d2857
commit
65298a9655
@ -29,8 +29,8 @@
|
|||||||
#include <libwebthree/WebThree.h>
|
#include <libwebthree/WebThree.h>
|
||||||
#include <libweb3jsonrpc/WebThreeStubServer.h>
|
#include <libweb3jsonrpc/WebThreeStubServer.h>
|
||||||
#include <libweb3jsonrpc/CorsHttpServer.h>
|
#include <libweb3jsonrpc/CorsHttpServer.h>
|
||||||
#include <jsonrpc/connectors/httpserver.h>
|
#include <jsonrpccpp/server/connectors/httpserver.h>
|
||||||
#include <jsonrpc/connectors/httpclient.h>
|
#include <jsonrpccpp/client/connectors/httpclient.h>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include "JsonSpiritHeaders.h"
|
#include "JsonSpiritHeaders.h"
|
||||||
#include "TestHelper.h"
|
#include "TestHelper.h"
|
||||||
@ -61,11 +61,11 @@ struct Setup
|
|||||||
|
|
||||||
web3->setIdealPeerCount(5);
|
web3->setIdealPeerCount(5);
|
||||||
web3->ethereum()->setForceMining(true);
|
web3->ethereum()->setForceMining(true);
|
||||||
jsonrpcServer = unique_ptr<WebThreeStubServer>(new WebThreeStubServer(new jsonrpc::CorsHttpServer(8080), *web3, {}));
|
jsonrpcServer = unique_ptr<WebThreeStubServer>(new WebThreeStubServer(jsonrpc::CorsHttpServer(8080), *web3, {}));
|
||||||
jsonrpcServer->setIdentities({});
|
jsonrpcServer->setIdentities({});
|
||||||
jsonrpcServer->StartListening();
|
jsonrpcServer->StartListening();
|
||||||
|
|
||||||
jsonrpcClient = unique_ptr<WebThreeStubClient>(new WebThreeStubClient(new jsonrpc::HttpClient("http://localhost:8080")));
|
jsonrpcClient = unique_ptr<WebThreeStubClient>(new WebThreeStubClient(jsonrpc::HttpClient("http://localhost:8080")));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user