Fixed bug when checking transaction repetitions in block history.