Skip to content

Commit

Permalink
Ensure that the base_extrinsic weight does not change for Capacity tr…
Browse files Browse the repository at this point in the history
…ansactions. (#1455)

# Goal
Ensure that the `base_extrinsic` weight does not change for Capacity
transactions.

Closes #1215

# Discussion
Created a new constant `CAPACITY_EXTRINSIC_BASE_WEIGHT` as a snapshot of
the benchmarks in: `runtime/common/src/weights/extrinsic_weights.rs`.

This change required updates to the unit tests, as this new constant
overrides the `base_extrinsic` in the `mock.rs`, the test accounts
required more tokens to cover the transaction costs.

# Checklist
- [ ] Chain spec updated
- [ ] Custom RPC OR Runtime API added/changed? Updated js/api-augment.
- [ ] Design doc(s) updated
- [ ] Tests added
- [ ] Benchmarks added
- [ ] Weights updated

---------

Co-authored-by: Matthew Orris <--help>
  • Loading branch information
mattheworris committed May 3, 2023
1 parent c0d0bf8 commit 93fc431
Show file tree
Hide file tree
Showing 7 changed files with 200 additions and 132 deletions.
Loading

0 comments on commit 93fc431

Please sign in to comment.