Do stale blocks end up or get reported by bitcoin daemon client? I am writing a bitcoin service and need to listen for incoming transactions for select accounts using the bitcoin client. For this I am watching the blocks as they come into the blockchain. And for periods of time the service is down, we keep track of the last block height and once the service is back online, restart traversing the blockchain from there until we catch up with the tip.
My questions are:
Does the client report stale blocks which are mined into the blockchain but not part of the main chain or are they ignored and hidden from me?
Also if the stale blocks are being reported, what would I need to to with the transactions from that block?
How do I detect if a block is stale?