diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-09-24 11:19:00 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-09-24 11:19:00 +0100 |
commit | 0d036bec261fce3c6fa59dbeb85a1c9fc02af2a1 (patch) | |
tree | 605c3537baca1ebf5678b897ba810312e2298fcc /src/cryptonote_core | |
parent | Merge pull request #1102 (diff) | |
download | monero-0d036bec261fce3c6fa59dbeb85a1c9fc02af2a1.tar.xz |
blockchain: do not reject chain histories matching only genesis
This is fine if our local chain is so small that it is entirely
contained within the last jump in the peer's short chain history.
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index badb1a335..894816256 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -1828,14 +1828,6 @@ bool Blockchain::find_blockchain_supplement(const std::list<crypto::hash>& qbloc return false; } - // if split_height remains 0, we didn't have any but the genesis block in common - // 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; - } - //we start to put block ids INCLUDING last known id, just to make other side be sure starter_offset = split_height; return true; |