Frontport commits from beta to master (#2743)

* Remove count limit for local transactions (#2634)

* Fixed stalled sync
This commit is contained in:
Arkadiy Paronyan
2016-10-20 00:33:00 +02:00
committed by GitHub
parent 3b8247b631
commit 20e1d575da
2 changed files with 4 additions and 4 deletions

View File

@@ -1058,7 +1058,7 @@ impl ChainSync {
}
let have_latest = io.chain().block_status(BlockID::Hash(peer_latest)) != BlockStatus::Unknown;
if !have_latest && higher_difficulty {
if !have_latest && (higher_difficulty || force) {
// check if got new blocks to download
if let Some(request) = self.new_blocks.request_blocks(io) {
self.request_blocks(io, peer_id, request, BlockSet::NewBlocks);