Refactor DigestItem (#2108)
* Add `start_aura2`. * .gitignore patch conflict files and remove one that accidentally got committed * Fix build The tests still don’t work. * Fix compilation errors * Fix compile errors (again) * Try (and fail) to fix tests * Properly deserialize data Previously, `DigestItem::Consensus` had no separate `DigestItemType`, so it did not get properly serialized and deserialized. * Add extra debug logging. Always allow old seals. A `RUST_LOG=substrate_aura_consensus cargo test --all -- --nocapture \ tests::authoring_blocks` revealed that old seals were being and rejected, causing the test to hang. As a temporary debug measure, allow old seals unconditionally, so that CI can test if this fixes the problem. * Forcibly disable rejection of old seals * Use old trait, but newer serialization The old trait for `CompatibleDigestItem` actually worked. By changing its implementation, one can ensure that all *new* seals have the modern form, but *legacy* seals are still decoded correctly. * Bump impl version * Squash spurious deprecation warning `rustc` should not be emitting a deprecation warning in deprecated code, but it does, so silence it. * Rip out unused Cargo feature * Move AURA to aura_primitives * Respond to code review * Wrap overly-long line * Reduce logging verbosity and add target * Add dependency on `sr-primitives` to `aura_primitives` * Fix build It failed with a message about Cargo.lock being out of date. * core: aura: rename aura engine id const * core: aura: remove superfluous logging * core: primitives: add removed semicolons * core: aura: remove unused import * core: network: style fix * runtime: update wasm blobs * runtime: bump impl_version * core: primitives: tag all DigestItemType variants explicitly
Showing
- substrate/.gitignore 2 additions, 0 deletionssubstrate/.gitignore
- substrate/Cargo.lock 1 addition, 0 deletionssubstrate/Cargo.lock
- substrate/core/consensus/aura/primitives/Cargo.toml 1 addition, 0 deletionssubstrate/core/consensus/aura/primitives/Cargo.toml
- substrate/core/consensus/aura/primitives/src/lib.rs 4 additions, 0 deletionssubstrate/core/consensus/aura/primitives/src/lib.rs
- substrate/core/consensus/aura/src/lib.rs 61 additions, 17 deletionssubstrate/core/consensus/aura/src/lib.rs
- substrate/core/finality-grandpa/src/lib.rs 1 addition, 1 deletionsubstrate/core/finality-grandpa/src/lib.rs
- substrate/core/network/src/consensus_gossip.rs 1 addition, 1 deletionsubstrate/core/network/src/consensus_gossip.rs
- substrate/core/network/src/lib.rs 1 addition, 1 deletionsubstrate/core/network/src/lib.rs
- substrate/core/network/src/message.rs 1 addition, 4 deletionssubstrate/core/network/src/message.rs
- substrate/core/network/src/protocol.rs 2 additions, 2 deletionssubstrate/core/network/src/protocol.rs
- substrate/core/network/src/service.rs 4 additions, 2 deletionssubstrate/core/network/src/service.rs
- substrate/core/network/src/test/mod.rs 4 additions, 3 deletionssubstrate/core/network/src/test/mod.rs
- substrate/core/primitives/src/crypto.rs 1 addition, 1 deletionsubstrate/core/primitives/src/crypto.rs
- substrate/core/primitives/src/ed25519.rs 1 addition, 1 deletionsubstrate/core/primitives/src/ed25519.rs
- substrate/core/service/src/lib.rs 3 additions, 2 deletionssubstrate/core/service/src/lib.rs
- substrate/core/sr-primitives/src/generic/digest.rs 29 additions, 6 deletionssubstrate/core/sr-primitives/src/generic/digest.rs
- substrate/core/sr-primitives/src/lib.rs 3 additions, 0 deletionssubstrate/core/sr-primitives/src/lib.rs
- substrate/core/test-runtime/wasm/Cargo.lock 1 addition, 0 deletionssubstrate/core/test-runtime/wasm/Cargo.lock
- substrate/core/test-runtime/wasm/target/wasm32-unknown-unknown/release/substrate_test_runtime.compact.wasm 0 additions, 0 deletions...known-unknown/release/substrate_test_runtime.compact.wasm
- substrate/node-template/runtime/wasm/Cargo.lock 1 addition, 0 deletionssubstrate/node-template/runtime/wasm/Cargo.lock
Please register or sign in to comment