I am observing unexpected behavior with the Cumulus Parachain Template. Our pallet uses off-chain workers (OCW), and the functionality successfully runs when we attach it to the Substrate Node Template.
However, when I add our pallet to the Cumulus Parachain Template and follow the Connect a Local Parachain guide, the functionality that requires off-chain workers stops running completely.
Is there a reason that OCWs are not initializing on the Cumulus Parachain Template while they do run on the Node Template? Does the chainspec need to be altered in some way?
--offchain-worker always
and let me know if it solves the issue.