Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Remove minimal spec #100

Merged
merged 5 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,7 @@ try-runtime = [
]

experimental = ["pallet-aura/experimental"]
fast-runtime = [
"snowbridge-pallet-ethereum-client/beacon-spec-minimal",
]
fast-runtime = []

# A feature that should be enabled when the runtime should be built for on-chain
# deployment. This will disable stuff that shouldn't be part of the on-chain wasm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -590,33 +590,33 @@ impl snowbridge_pallet_outbound_queue::Config for Runtime {
type Channels = EthereumSystem;
}

#[cfg(feature = "fast-runtime")]
#[cfg(any(feature = "fast-runtime", feature = "runtime-benchmarks"))]
parameter_types! {
pub const ChainForkVersions: ForkVersions = ForkVersions {
genesis: Fork {
version: [0, 0, 0, 1], // 0x00000001
version: [0, 0, 0, 0], // 0x00000000
epoch: 0,
},
altair: Fork {
version: [1, 0, 0, 1], // 0x01000001
version: [1, 0, 0, 0], // 0x01000000
epoch: 0,
},
bellatrix: Fork {
version: [2, 0, 0, 1], // 0x02000001
version: [2, 0, 0, 0], // 0x02000000
epoch: 0,
},
capella: Fork {
version: [3, 0, 0, 1], // 0x03000001
version: [3, 0, 0, 0], // 0x03000000
Copy link
Collaborator Author

@claravanstaden claravanstaden Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are mainnet fork versions, because lodestar now uses the mainnet spec for local tests and the fork versions are also defined in the spec preset config.

epoch: 0,
},
deneb: Fork {
version: [4, 0, 0, 1], // 0x04000001
version: [4, 0, 0, 0], // 0x04000000
epoch: 0,
}
};
}

#[cfg(not(feature = "fast-runtime"))]
#[cfg(all(not(feature = "fast-runtime"), not(feature = "runtime-benchmarks")))]
parameter_types! {
pub const ChainForkVersions: ForkVersions = ForkVersions {
genesis: Fork {
Expand All @@ -637,7 +637,7 @@ parameter_types! {
},
deneb: Fork {
version: [144, 0, 0, 115], // 0x90000073
epoch: 4294967295,
epoch: 132608,
},
};
}
Expand Down
Loading