mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 07:31:35 +02:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user