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

Mainnet v1.5.1 Async Backing #100

Merged
merged 56 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
a4268f3
Merge pull request #69 from OriginTrail/develop
NZT48 Aug 31, 2023
fa1554c
Merge pull request #77 from OriginTrail/develop
NZT48 Apr 22, 2024
05896ae
Add sudo for Devnet
NZT48 Apr 22, 2024
d882569
Merge pull request #78 from OriginTrail/develop
NZT48 Apr 23, 2024
c2bb5b2
Dependency update to Polkadot v0.9.42
NZT48 Jun 27, 2024
0749d2f
Dependency update to Polkadot v0.9.43
NZT48 Jun 27, 2024
9d10743
Dependency update to Polkadot v1.1.0
NZT48 Jun 28, 2024
2e0f561
Integrating metadata hash verification into runtime
NZT48 Jul 2, 2024
8227e39
Dependency update to Polkadot v1.3.0
NZT48 Jul 2, 2024
3484564
Lift dependencies to the workspace
NZT48 Jul 2, 2024
6b8023f
Dependency update to Polkadot v1.5.0
NZT48 Jul 4, 2024
29994fc
Add genesis builder
NZT48 Jul 10, 2024
eac54b0
Dependency update to Polkadot v1.9.0
NZT48 Jul 19, 2024
8613065
Merge pull request #83 from OriginTrail/feature/polkadot-v1.9.0
NZT48 Jul 24, 2024
1de59f8
Setup chain id for evm
NZT48 Jul 25, 2024
c1e38c2
Updated Devnet to Polkadot 1.9.0
NZT48 Jul 25, 2024
74d3ed1
Fix chain id in chainspec
NZT48 Jul 26, 2024
014a9af
Bump spec version
NZT48 Jul 26, 2024
241a06f
Merge pull request #84 from OriginTrail/feature/polkadot-v1.9.0
NZT48 Jul 26, 2024
cd407a8
Adjust base fee
NZT48 Jul 30, 2024
6d763df
Merge branch 'release/devnet' into hotfix/base-fee
NZT48 Jul 30, 2024
d274626
Merge pull request #85 from OriginTrail/hotfix/base-fee
NZT48 Jul 30, 2024
cd14ca0
Adjust base fee
NZT48 Jul 30, 2024
3a5221a
Merge pull request #86 from OriginTrail/feature/polkadot-v1.9.0
NZT48 Jul 30, 2024
e0cd94e
Update ChainId
NZT48 Aug 7, 2024
dde2118
Remove native executor
NZT48 Aug 7, 2024
0c1e010
Remove commented out code
NZT48 Aug 7, 2024
208a450
Merge pull request #88 from OriginTrail/hotfix/disable-native-executor
NZT48 Aug 7, 2024
0a998e7
Merge pull request #89 from OriginTrail/hotfix/disable-native-executor
NZT48 Aug 9, 2024
3567ccb
Merge branch 'release/devnet' into hotfix/disable-native-executor
NZT48 Aug 9, 2024
da7292a
Merge pull request #90 from OriginTrail/hotfix/disable-native-executor
NZT48 Aug 9, 2024
fd1e952
Merge pull request #91 from OriginTrail/feature/polkadot-v1.9.0
NZT48 Aug 9, 2024
0ae80a0
Update chain id
NZT48 Aug 9, 2024
873e5a9
Async backing phase 1 - runtime updates
NZT48 Aug 9, 2024
0e1f239
Plug new lookahead collator node
NZT48 Aug 9, 2024
a0cd99e
Revert milisec per block
NZT48 Aug 9, 2024
49c6bfa
Phase 3 - Enable async backing in runtime
NZT48 Aug 9, 2024
ef8e48a
Compiling
Mihajlo-Pavlovic Aug 15, 2024
3cc0dd9
rm .vscode
Mihajlo-Pavlovic Aug 15, 2024
215b7da
Remove unused
Mihajlo-Pavlovic Aug 15, 2024
5a05a96
Merge branch 'release/devnet' into feature/polkadot-v1.11.0
Mihajlo-Pavlovic Aug 15, 2024
4c415be
Remove comments and log file
Mihajlo-Pavlovic Aug 15, 2024
c37d5b9
Add sudo pallet
Mihajlo-Pavlovic Aug 15, 2024
f22adbb
Move polkadot-service to mooneam implementation (#94)
Mihajlo-Pavlovic Aug 19, 2024
407e5e7
Updates
Mihajlo-Pavlovic Aug 19, 2024
a78e980
version bump
Mihajlo-Pavlovic Aug 19, 2024
0658b48
version bump
Mihajlo-Pavlovic Aug 19, 2024
3cb031b
Merge branch 'feature/async-backing' into feature/polkadot-v1.11.0
Mihajlo-Pavlovic Aug 19, 2024
1caa64d
Merge branch 'feature/enable-async-backing' into feature/polkadot-v1.…
Mihajlo-Pavlovic Aug 19, 2024
cb7b0db
Enable AB
Mihajlo-Pavlovic Aug 20, 2024
8e4637c
Update spec version
Mihajlo-Pavlovic Aug 21, 2024
1a97b95
Testnet release v1.11.0 (#96)
Mihajlo-Pavlovic Aug 21, 2024
1a96f7f
Update chainId for testnet evm
Mihajlo-Pavlovic Aug 21, 2024
b1bccf1
Merge branch 'release/testnet' into feature/polkadot-v1.11.0-AB-enabled
Mihajlo-Pavlovic Aug 21, 2024
71bac2c
remove new line
Mihajlo-Pavlovic Aug 21, 2024
9920ad3
Merge branch 'release/mainnet' into feature/polkadot-v1.11.0-AB-enabled
Mihajlo-Pavlovic Sep 10, 2024
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
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "neuroweb-runtime"
version = "1.5.0"
version = "1.5.1"
authors = ["TraceLabs"]
description = "NeuroWeb Runtime - Cumulus FRAME-based Substrate Runtime"
license = "GPL-3.0-only"
Expand Down
18 changes: 11 additions & 7 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("origintrail-parachain"),
impl_name: create_runtime_str!("neuroweb"),
authoring_version: 1,
spec_version: 133,
spec_version: 134,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand All @@ -150,7 +150,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {

/// Maximum number of blocks simultaneously accepted by the Runtime, not yet included into the
/// relay chain.
pub const UNINCLUDED_SEGMENT_CAPACITY: u32 = 1;
pub const UNINCLUDED_SEGMENT_CAPACITY: u32 = 3;

/// How many parachain blocks are processed by the relay chain per parent. Limits the number of
/// blocks authored per slot.
pub const BLOCK_PROCESSING_VELOCITY: u32 = 1;
Expand All @@ -163,7 +164,7 @@ pub const RELAY_CHAIN_SLOT_DURATION_MILLIS: u32 = 6000;
/// up by `pallet_aura` to implement `fn slot_duration()`.
///
/// Change this to adjust the block time.
pub const MILLISECS_PER_BLOCK: u64 = 12000;
pub const MILLISECS_PER_BLOCK: u64 = 6000;

// NOTE: Currently it is not possible to change the slot duration after the chain has started.
// Attempting to do so will brick block production.
Expand All @@ -190,9 +191,9 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(5);
/// `Operational` extrinsics.
const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);

/// We allow for 0.5 of a second of compute with a 12 second average block time.
/// We allow for 2 seconds of compute with a 6 second average block.
const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(
WEIGHT_REF_TIME_PER_SECOND.saturating_div(2),
WEIGHT_REF_TIME_PER_SECOND.saturating_mul(2),
cumulus_primitives_core::relay_chain::MAX_POV_SIZE as u64,
);

Expand Down Expand Up @@ -309,8 +310,11 @@ impl pallet_timestamp::Config for Runtime {
/// A timestamp: milliseconds since the unix epoch.
type Moment = u64;
type OnTimestampSet = Aura;
#[cfg(feature = "experimental")]
type MinimumPeriod = ConstU64<0>;
#[cfg(not(feature = "experimental"))]
type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>;
type WeightInfo = ();
type WeightInfo = pallet_timestamp::weights::SubstrateWeight<Runtime>;
}

impl pallet_authorship::Config for Runtime {
Expand Down Expand Up @@ -562,7 +566,7 @@ impl pallet_aura::Config for Runtime {
type MaxAuthorities = ConstU32<100_000>;
// Should be only enabled (`true`) when async backing is enabled
// otherwise set to `false`
type AllowMultipleBlocksPerSlot = ConstBool<false>;
type AllowMultipleBlocksPerSlot = ConstBool<true>;
type SlotDuration = ConstU64<SLOT_DURATION>;
}

Expand Down
Loading