From 3a4272444631a942bd0e7bb3fcc15d4f299afd20 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 5 Aug 2015 23:17:11 +0200 Subject: [PATCH] Remove unneeded and confusing API. --- libethereum/Client.h | 1 - libweb3jsonrpc/WebThreeStubServer.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libethereum/Client.h b/libethereum/Client.h index 1115dc825..3c8d08b23 100644 --- a/libethereum/Client.h +++ b/libethereum/Client.h @@ -102,7 +102,6 @@ public: // [PRIVATE API - only relevant for base clients, not available in general] /// Get the block. dev::eth::Block block(h256 const& _blockHash, PopulationStatistics* o_stats = nullptr) const; - dev::eth::Block state(h256 const& _blockHash, PopulationStatistics* o_stats = nullptr) const { return block(_blockHash, o_stats); }// TODO REMOVE /// Get the state of the given block part way through execution, immediately before transaction /// index @a _txi. dev::eth::State state(unsigned _txi, h256 const& _block) const; diff --git a/libweb3jsonrpc/WebThreeStubServer.cpp b/libweb3jsonrpc/WebThreeStubServer.cpp index 826138081..627f18d38 100644 --- a/libweb3jsonrpc/WebThreeStubServer.cpp +++ b/libweb3jsonrpc/WebThreeStubServer.cpp @@ -257,7 +257,7 @@ Json::Value WebThreeStubServer::admin_eth_reprocess(std::string const& _blockNum ADMIN_GUARD; Json::Value ret; PopulationStatistics ps; - m_web3.ethereum()->state(blockHash(_blockNumberOrHash), &ps); + m_web3.ethereum()->block(blockHash(_blockNumberOrHash), &ps); ret["enact"] = ps.enact; ret["verify"] = ps.verify; ret["total"] = ps.verify + ps.enact;