A widespread bug has compromised a special type of bitcoin transaction that is supposed to discourage miners from cheating, new research shows.