Merge pull request #466 from j-berman/fix-set-init

Daemon RPC: only set init sync data if not already set
This commit is contained in:
Justin Berman
2026-09-18 17:05:44 -07:00
committed by GitHub
+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())