Browse Source

Remove unneeded and confusing API.

cl-refactor
Gav Wood 9 years ago
parent
commit
3a42724446
  1. 1
      libethereum/Client.h
  2. 2
      libweb3jsonrpc/WebThreeStubServer.cpp

1
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;

2
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;

Loading…
Cancel
Save