Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offchain worket test improvements #233

Open
functor-flow opened this issue Oct 22, 2024 · 0 comments
Open

Offchain worket test improvements #233

functor-flow opened this issue Oct 22, 2024 · 0 comments
Assignees

Comments

@functor-flow
Copy link
Member

functor-flow commented Oct 22, 2024

This test

https://github.com/renlabs-dev/subspace-network/blob/testnet/weight-copy/tests/src/offworker/offworker.rs#L78

Checks for:

  1. encrypting weights
  2. offchain worker processing
  3. offchain worker sending decrypted weights back to runtime
  4. validation of the weights, by the runtime, is correct

What it does not check:

  1. consensus params supplied with weights were correctly executed and applied
  2. storages cleaned up (after weights have been received by the runtime). we need to check for correct cleanup of the old consensus params, encrypted weights, hashes and everything else (essentially make sure there is nothing in the runtime accumulating after weights have been received).

Additional

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants