change tx detection to check for orphaned blocks

Fixes #74, thanks @obigal for the proper way to check a blocks root transaction.