Skip to content

Commit 264d620

Browse files
committed
Reduce gas factor
1 parent c69f402 commit 264d620

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x/wasm/types/gas_register.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const (
2121
// Rough timing have 88k gas at 90us, which is equal to 1k sdk gas... (one read)"
2222
// as well as manual Wasmer benchmarks from 2019. This was then multiplied by 150_000
2323
// in the 0.16 -> 1.0 upgrade (https://github.com/CosmWasm/cosmwasm/pull/1120).
24+
// In the 2.0 upgrade, this was reduced by a factor of 1000 (https://github.com/CosmWasm/cosmwasm/pull/1884).
2425
//
2526
// The multiplier deserves more reproducible benchmarking and a strategy that allows easy adjustments.
2627
// This is tracked in https://github.com/CosmWasm/wasmd/issues/566 and https://github.com/CosmWasm/wasmd/issues/631.
@@ -30,7 +31,7 @@ const (
3031
//
3132
// Please note that all gas prices returned to wasmvm should have this multiplied.
3233
// Benchmarks and numbers were discussed in: https://github.com/CosmWasm/wasmd/pull/634#issuecomment-938055852
33-
DefaultGasMultiplier uint64 = 140_000_000
34+
DefaultGasMultiplier uint64 = 140_000
3435
// DefaultInstanceCost is how much SDK gas we charge each time we load a WASM instance.
3536
// Creating a new instance is costly, and this helps put a recursion limit to contracts calling contracts.
3637
// Benchmarks and numbers were discussed in: https://github.com/CosmWasm/wasmd/pull/634#issuecomment-938056803

0 commit comments

Comments
 (0)