Merge pull request #52 from domob1812/duplicate-tx-check

Check earlier for blocks with duplicate transactions to prevent DoS.