| 220 | } |
| 221 | |
| 222 | Json::Value Eth::eth_getUncleCountByBlockNumber(string const& _blockNumber) |
| 223 | { |
| 224 | try |
| 225 | { |
| 226 | BlockNumber blockNumber = jsToBlockNumber(_blockNumber); |
| 227 | if (!client()->isKnown(blockNumber)) |
| 228 | return Json::Value(Json::nullValue); |
| 229 | |
| 230 | return toJS(client()->uncleCount(blockNumber)); |
| 231 | } |
| 232 | catch (...) |
| 233 | { |
| 234 | BOOST_THROW_EXCEPTION(JsonRpcException(Errors::ERROR_RPC_INVALID_PARAMS)); |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | string Eth::eth_getCode(string const& _address, string const& _blockNumber) |
| 239 | { |
no test coverage detected