Log txids and prevent duplicates