diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2023-08-17 10:18:12 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2023-08-17 10:18:12 -0500 |
| commit | 894adef29588f20951a675fc25139ebb777493eb (patch) | |
| tree | 5c94911d0318160c8b11d7fc6e4783af07196285 /src/rpc/core_rpc_server.cpp | |
| parent | 6c7640eb7479d21d10b783ed8166258eab6af89e (diff) | |
| parent | 842478c5a922aa67dc0cf51f71128c42587021ec (diff) | |
| download | monzero-core-894adef29588f20951a675fc25139ebb777493eb.tar.gz monzero-core-894adef29588f20951a675fc25139ebb777493eb.tar.xz monzero-core-894adef29588f20951a675fc25139ebb777493eb.zip | |
Merge pull request #8891
842478c core_rpc_server: return ID of submitted block (jeffro256)
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
| -rw-r--r-- | src/rpc/core_rpc_server.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 981a207a7..826cb63fa 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -2178,7 +2178,8 @@ namespace cryptonote // Fixing of high orphan issue for most pools // Thanks Boolberry! block b; - if(!parse_and_validate_block_from_blob(blockblob, b)) + crypto::hash blk_id; + if(!parse_and_validate_block_from_blob(blockblob, b, blk_id)) { error_resp.code = CORE_RPC_ERROR_CODE_WRONG_BLOCKBLOB; error_resp.message = "Wrong block blob"; @@ -2201,6 +2202,7 @@ namespace cryptonote error_resp.message = "Block not accepted"; return false; } + res.block_id = epee::string_tools::pod_to_hex(blk_id); res.status = CORE_RPC_STATUS_OK; return true; } |
