diff --git a/eth/main.cpp b/eth/main.cpp index 7d269d944..9cd270a16 100644 --- a/eth/main.cpp +++ b/eth/main.cpp @@ -1749,13 +1749,13 @@ int main(int argc, char** argv) { #if ETH_JSCONSOLE || !ETH_TRUE JSLocalConsole console; - // TODO: set port properly? + shared_ptr rpcServer = make_shared(*console.connector(), web3, make_shared([&](){ return web3.ethereum(); }, getAccountPassword, keyManager), vector(), keyManager, *gasPricer); while (!g_exit) { console.readExpression(); stopMiningAfterXBlocks(c, n, mining); } - jsonrpcServer->StopListening(); + rpcServer->StopListening(); #endif } else