Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non-determined gas consumed #910

Closed
bruce-wayne2 opened this issue Jul 21, 2022 · 4 comments
Closed

non-determined gas consumed #910

bruce-wayne2 opened this issue Jul 21, 2022 · 4 comments

Comments

@bruce-wayne2
Copy link

bruce-wayne2 commented Jul 21, 2022

I'm tracking down an issue that is causing non-functioning consensus between nodes.

When I execute a contract method on Wormhole, the gas consumption returned by the method is inconsistent between each node.

The gas consumption of one part is 309187 and the other part is 309188.

All nodes run in docker containers.

wasmd version: v0.27.0
wasmvm version: v1.0.0
libwasmvm version: libwasmvm_muslc.x86_64.a

I output the gas consumption for each step:

node1:

ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 3 descriptor ReadPerByte
ConsumeGas, amount 36 descriptor ReadPerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 30 descriptor WritePerByte
ConsumeGas, amount 360 descriptor WritePerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 57 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 102 descriptor ReadPerByte
ConsumeGas, amount 3 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 90 descriptor ReadPerByte
ConsumeGas, amount 3 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 51 descriptor ReadPerByte
ConsumeGas, amount 36 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 9 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 78 descriptor ReadPerByte
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 45 descriptor ReadPerByte
ConsumeGas, amount 9 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 75 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 81 descriptor ReadPerByte
ConsumeGas, amount 18 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 45 descriptor ReadPerByte
ConsumeGas, amount 9 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 75 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 81 descriptor ReadPerByte
ConsumeGas, amount 18 descriptor ReadPerByte
ConsumeGas, amount 6910 descriptor txSize
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 492 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 492 descriptor ReadPerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 630 descriptor WritePerByte
ConsumeGas, amount 7380 descriptor WritePerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 45 descriptor ReadPerByte
ConsumeGas, amount 9 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 75 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 81 descriptor ReadPerByte
ConsumeGas, amount 18 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 45 descriptor ReadPerByte
ConsumeGas, amount 9 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 75 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 81 descriptor ReadPerByte
ConsumeGas, amount 18 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 738 descriptor ReadPerByte
ConsumeGas, amount 21000 descriptor ante verify: eth_secp256k1
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 738 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 738 descriptor ReadPerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 630 descriptor WritePerByte
ConsumeGas, amount 7470 descriptor WritePerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 36 descriptor ReadPerByte
ConsumeGas, amount 18 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 48 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 42 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 57 descriptor ReadPerByte
ConsumeGas, amount 6 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 45 descriptor ReadPerByte
ConsumeGas, amount 1239 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 57 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 102 descriptor ReadPerByte
ConsumeGas, amount 3 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 90 descriptor ReadPerByte
ConsumeGas, amount 3 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 51 descriptor ReadPerByte
ConsumeGas, amount 36 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 9 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 78 descriptor ReadPerByte
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 99 descriptor ReadPerByte
ConsumeGas, amount 189 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 27 descriptor ReadPerByte
ConsumeGas, amount 246 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor Has
ConsumeGas, amount 60000 descriptor Loading CosmWasm module: execute
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 123 descriptor ReadPerByte
ConsumeGas, amount 552 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 123 descriptor ReadPerByte
ConsumeGas, amount 552 descriptor ReadPerByte
ConsumeGas, amount 78165 descriptor contract sub-query
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 237 descriptor ReadPerByte
ConsumeGas, amount 0 descriptor ReadPerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 2370 descriptor WritePerByte
ConsumeGas, amount 120 descriptor WritePerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 159 descriptor ReadPerByte
ConsumeGas, amount 303 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 270 descriptor ReadPerByte
ConsumeGas, amount 0 descriptor ReadPerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 2520 descriptor WritePerByte
ConsumeGas, amount 60 descriptor WritePerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 1560 descriptor WritePerByte
ConsumeGas, amount 3870 descriptor WritePerByte
ConsumeGas, amount 1129 descriptor wasm contract
ConsumeGas, amount 204 descriptor Custom contract event attributes
ConsumeGas, amount 1000 descriptor Has
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 21 descriptor ReadPerByte
ConsumeGas, amount 24 descriptor ReadPerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 210 descriptor WritePerByte
ConsumeGas, amount 240 descriptor WritePerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 750 descriptor WritePerByte
ConsumeGas, amount 3480 descriptor WritePerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 540 descriptor WritePerByte
ConsumeGas, amount 2430 descriptor WritePerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 99 descriptor ReadPerByte
ConsumeGas, amount 189 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 27 descriptor ReadPerByte
ConsumeGas, amount 246 descriptor ReadPerByte
ConsumeGas, amount 268 descriptor Loading CosmWasm module: reply
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 156 descriptor ReadPerByte
ConsumeGas, amount 387 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 252 descriptor ReadPerByte
ConsumeGas, amount 6 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor Delete
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 2700 descriptor WritePerByte
ConsumeGas, amount 420 descriptor WritePerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 2070 descriptor WritePerByte
ConsumeGas, amount 30 descriptor WritePerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 2040 descriptor WritePerByte
ConsumeGas, amount 2880 descriptor WritePerByte
ConsumeGas, amount 305 descriptor wasm contract # Warning, this line does not match
ConsumeGas, amount 50 descriptor Custom contract event attributes

node2:

ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 3 descriptor ReadPerByte
ConsumeGas, amount 36 descriptor ReadPerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 30 descriptor WritePerByte
ConsumeGas, amount 360 descriptor WritePerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 57 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 102 descriptor ReadPerByte
ConsumeGas, amount 3 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 90 descriptor ReadPerByte
ConsumeGas, amount 3 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 51 descriptor ReadPerByte
ConsumeGas, amount 36 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 9 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 78 descriptor ReadPerByte
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 45 descriptor ReadPerByte
ConsumeGas, amount 9 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 75 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 81 descriptor ReadPerByte
ConsumeGas, amount 18 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 45 descriptor ReadPerByte
ConsumeGas, amount 9 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 75 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 81 descriptor ReadPerByte
ConsumeGas, amount 18 descriptor ReadPerByte
ConsumeGas, amount 6910 descriptor txSize
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 492 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 492 descriptor ReadPerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 630 descriptor WritePerByte
ConsumeGas, amount 7380 descriptor WritePerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 45 descriptor ReadPerByte
ConsumeGas, amount 9 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 75 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 81 descriptor ReadPerByte
ConsumeGas, amount 18 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 45 descriptor ReadPerByte
ConsumeGas, amount 9 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 75 descriptor ReadPerByte
ConsumeGas, amount 15 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 81 descriptor ReadPerByte
ConsumeGas, amount 18 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 738 descriptor ReadPerByte
ConsumeGas, amount 21000 descriptor ante verify: eth_secp256k1
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 738 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 738 descriptor ReadPerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 630 descriptor WritePerByte
ConsumeGas, amount 7470 descriptor WritePerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 36 descriptor ReadPerByte
ConsumeGas, amount 18 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 48 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 42 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 57 descriptor ReadPerByte
ConsumeGas, amount 6 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 45 descriptor ReadPerByte
ConsumeGas, amount 1239 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 57 descriptor ReadPerByte
ConsumeGas, amount 12 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 102 descriptor ReadPerByte
ConsumeGas, amount 3 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 90 descriptor ReadPerByte
ConsumeGas, amount 3 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 51 descriptor ReadPerByte
ConsumeGas, amount 36 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 9 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 63 descriptor ReadPerByte
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 78 descriptor ReadPerByte
ConsumeGas, amount 66 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 99 descriptor ReadPerByte
ConsumeGas, amount 189 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 27 descriptor ReadPerByte
ConsumeGas, amount 246 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor Has
ConsumeGas, amount 60000 descriptor Loading CosmWasm module: execute
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 123 descriptor ReadPerByte
ConsumeGas, amount 552 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 123 descriptor ReadPerByte
ConsumeGas, amount 552 descriptor ReadPerByte
ConsumeGas, amount 78165 descriptor contract sub-query
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 237 descriptor ReadPerByte
ConsumeGas, amount 0 descriptor ReadPerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 2370 descriptor WritePerByte
ConsumeGas, amount 120 descriptor WritePerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 159 descriptor ReadPerByte
ConsumeGas, amount 303 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 270 descriptor ReadPerByte
ConsumeGas, amount 0 descriptor ReadPerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 2520 descriptor WritePerByte
ConsumeGas, amount 60 descriptor WritePerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 1560 descriptor WritePerByte
ConsumeGas, amount 3870 descriptor WritePerByte
ConsumeGas, amount 1129 descriptor wasm contract
ConsumeGas, amount 204 descriptor Custom contract event attributes
ConsumeGas, amount 1000 descriptor Has
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 21 descriptor ReadPerByte
ConsumeGas, amount 24 descriptor ReadPerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 210 descriptor WritePerByte
ConsumeGas, amount 240 descriptor WritePerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 750 descriptor WritePerByte
ConsumeGas, amount 3480 descriptor WritePerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 540 descriptor WritePerByte
ConsumeGas, amount 2430 descriptor WritePerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 99 descriptor ReadPerByte
ConsumeGas, amount 189 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 27 descriptor ReadPerByte
ConsumeGas, amount 246 descriptor ReadPerByte
ConsumeGas, amount 268 descriptor Loading CosmWasm module: reply
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 156 descriptor ReadPerByte
ConsumeGas, amount 387 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor ReadFlat
ConsumeGas, amount 252 descriptor ReadPerByte
ConsumeGas, amount 6 descriptor ReadPerByte
ConsumeGas, amount 1000 descriptor Delete
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 2700 descriptor WritePerByte
ConsumeGas, amount 420 descriptor WritePerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 2070 descriptor WritePerByte
ConsumeGas, amount 30 descriptor WritePerByte
ConsumeGas, amount 2000 descriptor WriteFlat
ConsumeGas, amount 2040 descriptor WritePerByte
ConsumeGas, amount 2880 descriptor WritePerByte
ConsumeGas, amount 306 descriptor wasm contract  # Warning, this line does not match
ConsumeGas, amount 50 descriptor Custom contract event attributes
ConsumeGas, amount 305 descriptor wasm contract # Warning, this line does not match
ConsumeGas, amount 306 descriptor wasm contract  # Warning, this line does not match

func (k Keeper) consumeRuntimeGas(ctx sdk.Context, gas uint64) {

@ethanfrey
Copy link
Member

To track this down, we need the contract (wasm) and the message that triggered it (and the state). This should be executable in pure rust in cosmwasm-vm and see if the gas from the vm is different, which you are expecting.

However, please do not post that here, we have security@confio.gmbh for that. More information can be seen here: https://github.com/CosmWasm/advisories/blob/main/SECURITY.md

We would need a reproducible test case we can run locally to investigate more.

@bruce-wayne2
Copy link
Author

Maybe we also need to take a moment to narrow down the problem.

@peterbourgon
Copy link

Just want to note that events aren't an alternative mechanism for observing consensus state. They don't, and can't, make any guarantees re: ordering, consistency, or determinism. If you need those guarantees, you need to consume consensus state directly, you can't use an event subscription.

@alpe
Copy link
Contributor

alpe commented Sep 13, 2022

In v0.29 non deterministic events were addressed. @bruce-wayne2 can you run your tests with that version again?

@alpe alpe closed this as completed Sep 13, 2022
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

No branches or pull requests

4 participants