Skip to content

Commit

Permalink
rpc: Drop db module
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Sep 27, 2017
1 parent e5cf591 commit 105d1ff
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 251 deletions.
7 changes: 3 additions & 4 deletions eth/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
#include <libweb3jsonrpc/SafeHttpServer.h>
#include <libweb3jsonrpc/ModularServer.h>
#include <libweb3jsonrpc/IpcServer.h>
#include <libweb3jsonrpc/LevelDB.h>
#include <libweb3jsonrpc/Whisper.h>
#include <libweb3jsonrpc/Net.h>
#include <libweb3jsonrpc/Web3.h>
Expand Down Expand Up @@ -1157,7 +1156,7 @@ int main(int argc, char** argv)
if (jsonRPCURL > -1 || ipc)
{
using FullServer = ModularServer<
rpc::EthFace, rpc::DBFace, rpc::WhisperFace,
rpc::EthFace, rpc::WhisperFace,
rpc::NetFace, rpc::Web3Face, rpc::PersonalFace,
rpc::AdminEthFace, rpc::AdminNetFace, rpc::AdminUtilsFace,
rpc::DebugFace, rpc::TestFace
Expand Down Expand Up @@ -1185,7 +1184,7 @@ int main(int argc, char** argv)
}

jsonrpcHttpServer.reset(new FullServer(
ethFace, new rpc::LevelDB(), new rpc::Whisper(web3, {}),
ethFace, new rpc::Whisper(web3, {}),
new rpc::Net(web3), new rpc::Web3(web3.clientVersion()), personal,
adminEth, adminNet, adminUtils,
new rpc::Debug(*web3.ethereum()),
Expand All @@ -1199,7 +1198,7 @@ int main(int argc, char** argv)
if (ipc)
{
jsonrpcIpcServer.reset(new FullServer(
ethFace, new rpc::LevelDB(), new rpc::Whisper(web3, {}), new rpc::Net(web3),
ethFace, new rpc::Whisper(web3, {}), new rpc::Net(web3),
new rpc::Web3(web3.clientVersion()), new rpc::Personal(keyManager, *accountHolder, *web3.ethereum()),
new rpc::AdminEth(*web3.ethereum(), *gasPricer.get(), keyManager, *sessionManager.get()),
new rpc::AdminNet(web3, *sessionManager.get()),
Expand Down
5 changes: 0 additions & 5 deletions libweb3jsonrpc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ jsonrpcstub_create(web3jsonrpc eth.json
EthClient ${CMAKE_CURRENT_BINARY_DIR} EthClient
)

jsonrpcstub_create(web3jsonrpc db.json
dev::rpc::DBFace ${CMAKE_CURRENT_SOURCE_DIR} DBFace
DBClient ${CMAKE_CURRENT_BINARY_DIR} DBClient
)

jsonrpcstub_create(web3jsonrpc debug.json
dev::rpc::DebugFace ${CMAKE_CURRENT_SOURCE_DIR} DebugFace
DebugClient ${CMAKE_CURRENT_BINARY_DIR} DebugClient
Expand Down
35 changes: 0 additions & 35 deletions libweb3jsonrpc/DBFace.h

This file was deleted.

60 changes: 0 additions & 60 deletions libweb3jsonrpc/LevelDB.cpp

This file was deleted.

49 changes: 0 additions & 49 deletions libweb3jsonrpc/LevelDB.h

This file was deleted.

47 changes: 0 additions & 47 deletions libweb3jsonrpc/MemoryDB.cpp

This file was deleted.

47 changes: 0 additions & 47 deletions libweb3jsonrpc/MemoryDB.h

This file was deleted.

4 changes: 0 additions & 4 deletions libweb3jsonrpc/db.json

This file was deleted.

0 comments on commit 105d1ff

Please sign in to comment.