-
Notifications
You must be signed in to change notification settings - Fork 992
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'grarco/runtime-gas-meter' (#2838)
* origin/grarco/runtime-gas-meter: Test that native VPs correctly run out of gas Empty loop in out of gas unit tests Adds source for wasm gas costs Changelog #2838 Increases gas limits in unit tests Increases gas scale Gas metering in `PseudoExecutionContext` Updates gas costs Singlepass compiler for wasm benchmarks Iterations and improvements for wasm opcodes benchmarks Removes old comment Renames vp user benchmark Updates beatch size for benchmarks Fixes make clippy for benchmarks Higher resolution gas metering for masp Updates masp vp checks Removes testing dependency from the benchmarks crate Clippy + fmt Removes benchmark for vp validator Benchmarks for shielded actions Adds wasm opcodes benchmarks Changes docstrings for signature verification Adds unit tests for out of gas Gas for ibc tx and removes unused host fn for whitelisted gas Removes whitelisted gas and sets a constant for the runtime gas meter # Conflicts: # crates/apps/src/lib/bench_utils.rs # crates/apps/src/lib/node/ledger/shell/finalize_block.rs # crates/benches/Cargo.toml # crates/benches/native_vps.rs # crates/benches/txs.rs # crates/core/Cargo.toml # crates/macros/src/lib.rs # crates/namada/Cargo.toml # crates/namada/src/ledger/protocol/mod.rs # crates/namada/src/vm/host_env.rs # crates/namada/src/vm/wasm/run.rs # crates/state/Cargo.toml # crates/test_utils/src/lib.rs # wasm/wasm_source/src/tx_ibc.rs # wasm_for_tests/tx_fail.wasm # wasm_for_tests/tx_memory_limit.wasm # wasm_for_tests/tx_mint_tokens.wasm # wasm_for_tests/tx_no_op.wasm # wasm_for_tests/tx_proposal_code.wasm # wasm_for_tests/tx_proposal_masp_reward.wasm # wasm_for_tests/tx_read_storage_key.wasm # wasm_for_tests/tx_write.wasm # wasm_for_tests/tx_write_storage_key.wasm # wasm_for_tests/vp_always_false.wasm # wasm_for_tests/vp_always_true.wasm # wasm_for_tests/vp_eval.wasm # wasm_for_tests/vp_memory_limit.wasm # wasm_for_tests/vp_read_storage_key.wasm # wasm_for_tests/wasm_source/Cargo.toml # wasm_for_tests/wasm_source/Makefile
- Loading branch information
Showing
75 changed files
with
2,032 additions
and
663 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Improved the gas metering system to track gas at runtime in wasm. | ||
([\#2838](https://github.com/anoma/namada/pull/2838)) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.