ChainSafe / ChainSafe/gossamer
Investigate(wazero): Investigate how to handle offchain functions
- Dominant language
- Go
- Stars
- 454
- Forks
- 144
- PR merge metrics
- No merged PRs in 30d
Description
## Issue summary
- Offchain workers are optional API that does not change the state of the chain. Some of these functions are not implemented correctly by us, and some are not at implemented at all.
- Since the protocol is optional, for the cases where we do not want to run it we need to verify that we are still following the intended behavior (i.e. return 0, return nothing, whatever we are supposed to do)
- For functions we are implementing, we need to verify that our current code is correct and if it is not create new issues to implement it correctly
This issue can be considered done when:
- [ ] Every offchain function that is not implemented has been verified to work as expected
- [ ] Every offchain function that is implemented has been verifies to work correctly and the same way as substrate. If a function/functions are found to be incorrect, either the issue needs to be marked as not implemented and incorrect behavior removed (and make sure that the unimplemented behavior is correct) or a new issue should be created to fix the incorrect function.
## Other information and links
- https://paritytech.github.io/polkadot-sdk/master/polkadot_sdk_docs/reference_docs/frame_offchain_workers/index.html
Contributor guide
Assessment
This issue has not been assessed yet.