Hi I'm new to this community and this is my first post.
I learn that bitcoin always take the longest blockchain for consensus but from time to time there'll be two blockchains in parallel if two miners solved the hash. I want to know if my tx is in one of the chain, and that chain turns out to be the invalid one, does my tx also become invalid and how to make sure my tx is really verified?
Sorry my question may sound dumb. Thanks for answering