Skip to content
Unverified Commit de6d0259 authored by tmpolaczyk's avatar tmpolaczyk Committed by GitHub
Browse files

Use generic hash for runtime wasm in resolve_state_version_from_wasm (#3447)



Changes the runtime hash algorithm used in
`resolve_state_version_from_wasm` from `DefaultHasher` to a
caller-provided one (usually `HashingFor<Block>`), to match the one used
elsewhere.

This fixes an issue where the runtime wasm is compiled 3 times when
starting the `tanssi-node` with `--dev`. With this fix, the runtime wasm
is only compiled 2 times. The other redundant compilation is caused by
the `GenesisConfigBuilderRuntimeCaller` struct, which ignores the
runtime cache.

---------

Co-authored-by: default avatarBastian Köcher <[email protected]>
parent 2431001e
Pipeline #448744 passed with stages
in 56 minutes and 12 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment