Skip to content

Conversation

@DanielDerefaka
Copy link

Summary

  • Since subtensor uses ParityDB as the database backend, this change updates all weight references from RocksDbWeight to ParityDbWeight for consistency
  • Updated runtime, pallets, test mocks, and the benchmark weight template

Changes

  • runtime/src/lib.rs: Changed DbWeight type from RocksDbWeight to ParityDbWeight
  • .maintain/frame-weight-template.hbs: Updated benchmark template to generate ParityDbWeight references
  • pallets/*/src/weights.rs: Updated all pallet weight implementations
  • */mock.rs: Updated test mocks

Closes #2131

Test plan

  • cargo check --lib passes
  • Full test suite validation

Since subtensor uses ParityDB as the database backend,
this change updates all weight references from RocksDbWeight
to ParityDbWeight for consistency.

Updated files:
- runtime/src/lib.rs: DbWeight type
- .maintain/frame-weight-template.hbs: benchmark template
- pallets/*/src/weights.rs: pallet weight implementations
- */mock.rs: test mocks

Closes opentensor#2131
@DanielDerefaka
Copy link
Author

@juniuszhou would you review this PR?

@open-junius
Copy link
Contributor

@juniuszhou would you review this PR?
There is a PR #2234 for the same ticket.

@DanielDerefaka
Copy link
Author

Closing as duplicate - PR #2234 already addresses this issue. Thanks @open-junius for pointing this out!

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

Successfully merging this pull request may close these issues.

Refactor RocksDbWeights to ParityDbWeights

2 participants