mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-08 19:59:30 +00:00
Added missing integrity check
This commit is contained in:
parent
15354e5a88
commit
4837b4c863
1 changed files with 4 additions and 3 deletions
|
@ -197,10 +197,11 @@ void BlockCache::load_all(SideChain& side_chain, P2PServer& server)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
block.deserialize(data + sizeof(uint32_t), n, side_chain);
|
if (block.deserialize(data + sizeof(uint32_t), n, side_chain) == 0) {
|
||||||
server.add_cached_block(block);
|
server.add_cached_block(block);
|
||||||
++blocks_loaded;
|
++blocks_loaded;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LOGINFO(1, "loaded " << blocks_loaded << " cached blocks");
|
LOGINFO(1, "loaded " << blocks_loaded << " cached blocks");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue