Check earlier for blocks with duplicate transactions to prevent DoS.
Port from Bitcoin be8651dde7b59e50e8c443da71c706667803d06d
Merge pull request #52 from domob1812/duplicate-tx-check

Check earlier for blocks with duplicate transactions to prevent DoS.