From 27f28085200e4ee38f93d8aa1279e6251d8f505f Mon Sep 17 00:00:00 2001 From: Abit Date: Sat, 6 May 2017 23:46:09 +0200 Subject: [PATCH] Fix `block_num != 0` syncing issue #273 --- libraries/app/application.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/app/application.cpp b/libraries/app/application.cpp index 9cf07b01c8..07ac83de6a 100644 --- a/libraries/app/application.cpp +++ b/libraries/app/application.cpp @@ -844,6 +844,9 @@ namespace detail { return synopsis; // we have no blocks } + if( low_block_num == 0) + low_block_num = 1; + // at this point: // low_block_num is the block before the first block we can undo, // non_fork_high_block_num is the block before the fork (if the peer is on a fork, or otherwise it is the same as high_block_num)