diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2014-12-07 13:17:25 +0000 |
|---|---|---|
| committer | warptangent <warptangent@inbox.com> | 2015-01-04 19:39:42 -0800 |
| commit | 198368b2e1674307539d6646dac8f4ad57170469 (patch) | |
| tree | a3e2645b51f2c1f3b6fd77ebdc889afe1fcc96bd /src | |
| parent | 1d23db220ad584b3af1cc243cd3a1193bb1deeed (diff) | |
| download | monzero-core-198368b2e1674307539d6646dac8f4ad57170469.tar.gz monzero-core-198368b2e1674307539d6646dac8f4ad57170469.tar.xz monzero-core-198368b2e1674307539d6646dac8f4ad57170469.zip | |
blockchain: fix wallet syncing from scratch
When the wallet syncs from the first block, it is fine to start
at the genesis block.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cryptonote_core/blockchain.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 75296cf46..b5c4f9ca4 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -1486,7 +1486,8 @@ bool Blockchain::find_blockchain_supplement(const std::list<crypto::hash>& qbloc } // if split_height remains 0, we didn't have any but the genesis block in common - if(split_height == 0) + // which is only fine if the blocks just have the genesis block + if(split_height == 0 && qblock_ids.size() > 1) { LOG_ERROR("Ours and foreign blockchain have only genesis block in common... o.O"); return false; |
