Daemon RPC: only set init sync data if not already set

This commit is contained in:
j-berman
2026-09-18 16:56:34 -07:00
parent 4d9ebc3746
commit d996fc33b3
+1 -1
View File
@@ -614,7 +614,7 @@ namespace cryptonote
: COMMAND_RPC_GET_BLOCKS_FAST::FULL;
}
if (req.init_tree_sync)
if (req.init_tree_sync && res.init_tree_sync_data.init_block_hash == crypto::null_hash)
{
// Get the first hash in the result
if (res.blocks.empty())