rpc: fix wrong top hash in cc_get_snapshot response

This commit is contained in:
Crypto City 2021-08-24 17:05:41 +00:00
parent a2b168f33e
commit cfa883088b

View File

@ -4077,7 +4077,7 @@ namespace cryptonote
RPCLockedTXN lock(m_core);
BlockchainDB &db = m_core.get_blockchain_storage().get_db();
crypto::hash top_hash = db.top_block_hash(&snapshot.height);
top_hash = db.top_block_hash(&snapshot.height);
snapshot.top_hash = epee::string_tools::pod_to_hex(top_hash);
uint32_t max_flags = db.get_highest_cc_flag_id();