10 class TrivialGasPricer;
26 return RPCModules{RPCModule{
"admin",
"1.0"}, RPCModule{
"miner",
"1.0"}};
29 virtual bool admin_eth_setMining(
bool _on, std::string
const& _session)
override;
30 virtual Json::Value admin_eth_blockQueueStatus(std::string
const& _session)
override;
31 virtual bool admin_eth_setAskPrice(std::string
const& _wei, std::string
const& _session)
override;
32 virtual bool admin_eth_setBidPrice(std::string
const& _wei, std::string
const& _session)
override;
33 virtual Json::Value admin_eth_findBlock(std::string
const& _blockHash, std::string
const& _session)
override;
34 virtual std::string admin_eth_blockQueueFirstUnknown(std::string
const& _session)
override;
35 virtual bool admin_eth_blockQueueRetryUnknown(std::string
const& _session)
override;
36 virtual Json::Value admin_eth_allAccounts(std::string
const& _session)
override;
38 virtual bool admin_eth_setMiningBenefactor(std::string
const& _uuidOrAddress, std::string
const& _session)
override;
39 virtual Json::Value admin_eth_inspect(std::string
const& _address, std::string
const& _session)
override;
40 virtual Json::Value admin_eth_reprocess(std::string
const& _blockNumberOrHash, std::string
const& _session)
override;
41 virtual Json::Value admin_eth_vmTrace(std::string
const& _blockNumberOrHash,
int _txIndex, std::string
const& _session)
override;
42 virtual Json::Value admin_eth_getReceiptByHashAndIndex(std::string
const& _blockNumberOrHash,
int _txIndex, std::string
const& _session)
override;
43 virtual bool miner_start(
int _threads)
override;
44 virtual bool miner_stop()
override;
45 virtual bool miner_setEtherbase(std::string
const& _uuidOrAddress)
override;
46 virtual bool miner_setExtra(std::string
const& _extraData)
override;
47 virtual bool miner_setGasPrice(std::string
const& _gasPrice)
override;
48 virtual std::string miner_hashrate()
override;
58 h256 blockHash(std::string
const& _blockNumberOrHash)
const;
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::vector< RPCModule > RPCModules
#define function(a, b, c, d, k, s)
eth::TrivialGasPricer & m_gp
eth::KeyManager & m_keyManager
High-level manager of password-encrypted keys for Ethereum.
virtual void setMiningBenefactorChanger(std::function< void(Address const &)> const &_f)
Fixed-size raw-byte array container type, with an API optimised for storing hashes.
Main API hub for interfacing with Ethereum.
virtual RPCModules implementedModules() const override
std::function< void(Address const &)> m_setMiningBenefactor