mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Ensures the block's size limit is respected. Defines a policy for weights. While I'm unsure I want to commit to this forever, I do want to acknowledge it's valid and well-defined. Cleans up the `serai-runtime` crate a bit with further modules in the `wasm` folder.
Serai Runtime
The on-chain rules for the Serai blockchain.
Compilation
If compilation fails due to borsh, this is likely due to attempting to
compile to WASM binary (no-std) while borsh believes it's being compiled in
a std context. Serai uses a patched substrate-wasm-builder which clears the CARGO_FEATURE_STD environment variable to prevent this,
yet target/ directories may be contaminated if a build ever occurs without
the patched substrate-wasm-builder. Please attempt a clean build to resolve
the error.