| 14 | api::ErrorAddress::ErrorAddress(int c, const std::string &msg, const std::string &address) |
| 15 | : json_rpc::Error(c, msg + " address=" + address), address(address) {} |
| 16 | api::ErrorWrongHeight::ErrorWrongHeight(const std::string &msg, int64_t request_height, Height top_block_height) |
| 17 | : json_rpc::Error(INVALID_HEIGHT_OR_DEPTH, |
| 18 | msg + "=" + common::to_string(request_height) + " while top block height is " + |
| 19 | common::to_string(top_block_height)) |
| 20 | , request_height(request_height) |
| 21 | , top_block_height(top_block_height) {} |
| 22 | Height api::ErrorWrongHeight::fix_height_or_depth( |
| 23 | HeightOrDepth ha, Height tip_height, bool throw_on_too_big_height, bool throw_on_too_big_depth, Height max_depth) { |
| 24 | if (ha < 0) { |
nothing calls this directly
no test coverage detected