It is feasible to identify the parent chain for a sidechain block as follows:
Check bits, timestamp, height, and previous hash of parent block.
Look for match by querying potential parent chains (via Bitcoin Core RPC). There may not be an exact match since the parent chain might have re-orged. However, it will pretty much always be obvious which parent chain is the single close match.
We should do this in order to display the parent chain for each block.
It is feasible to identify the parent chain for a sidechain block as follows:
We should do this in order to display the parent chain for each block.