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

bad proof #2001

Merged
merged 1 commit into from
Mar 6, 2024
Merged

bad proof #2001

merged 1 commit into from
Mar 6, 2024

Conversation

turuslan
Copy link
Contributor

@turuslan turuslan commented Mar 6, 2024

Referenced issues

Description of the Change

  • wasmedge ModuleInstance.code_hash_, which is used by RuntimePropertiesCacheImpl , was not initialized. Executor.call cached wrong/old/genesis Core_version. version.spec_version and version.transaction_version is part of signing payload, so signer (js) and verifier (wasm) didn't agree.
  • explain InvalidTransaction::BadProof. Mortality Era encoding breaks if finalized block is used and finality lags.

Benefits

Possible Drawbacks

Signed-off-by: turuslan <turuslan.devbox@gmail.com>
@turuslan turuslan requested review from kamilsa and Harrm March 6, 2024 06:57
@turuslan turuslan merged commit 43b35f9 into master Mar 6, 2024
12 of 13 checks passed
@turuslan turuslan deleted the kusama/bad-proof branch March 6, 2024 08:24
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

Successfully merging this pull request may close these issues.

3 participants