Merge pull request #577 from JosephGoulden/optimise_forget_transactions

fix: copy less hashes when removing invalid txs during sync
5 jobs for master in 2 seconds (queued for 2 seconds)