-
Notifications
You must be signed in to change notification settings - Fork 955
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
Remove wasm code from tx #1297
Remove wasm code from tx #1297
Conversation
pls update wasm |
pls update wasm |
…nt-0.15 * namada/yuji/wasm_hash: add changelog fix vp wasm tests fix vp_implicit test for CI [ci] wasm checksums update fix wasm cache file path fix e2e test: invalid_transactions fix vp whitelist checking [ci] wasm checksums update for client for vp handling modify wasm cache
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modulo the small comments LGTM! Since we're going this way, I think we could also pre-compile all the wasms in init_chain
in a follow up
apps/src/lib/config/genesis.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are the genesis hashes removed here? they are not directly related to the whitelist; they are an integrity check on the genesis bundle, so we die on genesis if the wrong wasms are present
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the genesis hashes should be exactly the same as the hashes on the whitelists. Do you mean that we shouldn't die on genesis even if they mismatch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, if whitelists are empty, we need to check hashes with them. I will revert the hash members and add the hash checking.
pls update wasm |
…nt-0.15 * namada/yuji/wasm_hash: add changelog fix vp wasm tests fix vp_implicit test for CI [ci] wasm checksums update fix wasm cache file path fix e2e test: invalid_transactions fix vp whitelist checking [ci] wasm checksums update for client for vp handling modify wasm cache
Remove tx/vp wasm code from a transaction
A transaction has the hash instead of the actual wasm code.
Each node stores wasms in the storage and fetches them according to hashes included in requested transactions.