lian/bitcoin-ruby — pull request #82 by mhanne (2014-04-07 06:10:17+00:00)
Title: storage: check for existing blocks only in mainchain

this solves a reorg issue when the node thinks the current chain head is already stored - and it is, but as a side-chain block. In that case it should still try to sort the block in the branch it belongs.

https://github.com/lian/bitcoin-ruby/issues/78