diff options
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 4d78367b6..631fb5cf8 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -2,7 +2,6 @@ // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. - #include <boost/foreach.hpp> #include "include_base_utils.h" using namespace epee; @@ -359,8 +358,7 @@ namespace cryptonote return false; } blobdata block_blob = t_serializable_object_to_blob(b); - crypto::public_key tx_pub_key = null_pkey; - cryptonote::parse_and_validate_tx_extra(b.miner_tx, tx_pub_key); + crypto::public_key tx_pub_key = cryptonote::get_tx_pub_key_from_extra(b.miner_tx); if(tx_pub_key == null_pkey) { error_resp.code = CORE_RPC_ERROR_CODE_INTERNAL_ERROR; |