The error message in parse_block_hash_str "invalid block height" should be "invalid block hash".
|
if hash_str.len() != 64 || !hash_str.starts_with("000000") { |
|
log::warn!(target: "web_handler", "parse_block_hash_str: invalid block height {}", hash_str); |
|
return Err(error::ErrorNotFound(ERROR_INVALID_BLOCK_HASH)); |
|
} |
|
Err(e) => { |
|
log::warn!(target: "web_handler", "parse_block_hash_str: invalid block height {}: {}", hash_str, e); |
|
Err(error::ErrorNotFound(ERROR_INVALID_BLOCK_HASH)) |
|
} |
The error message in
parse_block_hash_str"invalid block height" should be "invalid block hash".miningpool-observer/web/src/util.rs
Lines 23 to 26 in 6e8e3c9
miningpool-observer/web/src/util.rs
Lines 29 to 32 in 6e8e3c9