-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Support compute costs for ExtCosts (#8426)
**UPDATE:** This PR has been updated to match the description of Compute Costs NEP: near/NEPs#455 Concretely, now we specify compute costs directly without weights indirection. --------- This PR addresses #8264, in particular allowing to add parameter weights for Storage Costs. Some open questions and potential improvements: - [X] Do we need to surface weights in the `views.rs` (RPC interface of the node?) - [X] Ideally we would avoid specifying the old base value in the diff config if we only want to change the weight. For now we need to do: ```yaml wasm_storage_read_base: { old: { base: 50_000_000_000, weight: 3 }, new: { base: 50_000_000_000, weight: 7 } } ```
- Loading branch information
Showing
11 changed files
with
149 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.