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

Add sync backing logic & refactor client to be closer to AURA api #14

Merged
merged 34 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
c56dcde
early steps
Agusrodri Nov 14, 2023
bdb1710
modify author-inherent and add custom FixedVelocityConsensusHook trait
Agusrodri Nov 14, 2023
6e64bf2
minor changes
Agusrodri Nov 16, 2023
3559f0f
add test
Agusrodri Nov 17, 2023
1e38da5
wip: refactor mooonkit closer to aura api (not compile yet)
librelois Nov 29, 2023
5f5429d
make client compile
librelois Dec 5, 2023
dbc3c12
ref: move async backing logic in a new pallet
librelois Dec 5, 2023
6daf0b0
add rust tests
librelois Dec 5, 2023
e6708d5
fmt
librelois Dec 5, 2023
1722075
Merge branch 'main' into elois-async-backing
librelois Dec 5, 2023
a9e6b9d
cleanup some useless diff
librelois Dec 5, 2023
e817386
cleanup
librelois Dec 5, 2023
f8d6460
refactor
librelois Dec 6, 2023
1ff7587
rename pallet
librelois Dec 6, 2023
4811709
fix licence comment
librelois Dec 6, 2023
5cde907
chore: rename folder nimbus-async-backing -> async-backing
librelois Dec 7, 2023
10800d4
fix compilation
librelois Dec 7, 2023
cb4ffc4
add runtime API UnincludedSegmentApi
librelois Dec 7, 2023
34fdd06
wip
librelois Dec 7, 2023
9ac817e
implement lookahead collator
librelois Dec 7, 2023
60caa54
rename and reorder params
librelois Dec 7, 2023
712a142
template: fix consensus task name
librelois Dec 12, 2023
7ec208e
fix template build (std feature)
librelois Dec 12, 2023
f82794c
remove useless dev-dependency
librelois Dec 12, 2023
4f6e92c
ref: more consistent rust features
librelois Dec 12, 2023
006c99e
add default-features = false for sp-consensus-slots
librelois Dec 13, 2023
c647b0e
allow force-authoring in lookahead mode
librelois Dec 13, 2023
94fbc6c
remove unused generic P
librelois Dec 13, 2023
6cad75f
fix nimbus-consensus package compilation
Agusrodri Dec 15, 2023
b781bba
fix: max pov size was divided by 2 twice
librelois Dec 18, 2023
d5e5f3e
missing Some
librelois Dec 18, 2023
59a4040
add TimeFromRelaySlot
librelois Dec 19, 2023
febb084
TimeFromRelaySlot should be public
librelois Dec 19, 2023
abe5389
Remove TimeFromRelaySlot
librelois Dec 20, 2023
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
42 changes: 42 additions & 0 deletions Cargo.lock

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

12 changes: 5 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
[workspace]
members = [
"client/consensus/nimbus-consensus",
"pallets/aura-style-filter",
"pallets/author-inherent",
"pallets/author-mapping",
"pallets/author-slot-filter",
"pallets/migrations",
"pallets/maintenance-mode",
"pallets/randomness",
"pallets/*",
"primitives/nimbus-primitives",
"template/node",
"template/runtime",
Expand Down Expand Up @@ -87,6 +81,7 @@ sp-api = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release
sp-application-crypto = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
sp-block-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
sp-consensus-babe = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
sp-consensus-slots = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0" }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
sp-debug-derive = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
sp-externalities = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
Expand Down Expand Up @@ -159,6 +154,7 @@ parachain-info = { git = "https://github.com/paritytech/polkadot-sdk", branch =
cumulus-client-cli = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0" }
cumulus-client-collator = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0" }
cumulus-client-consensus-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0" }
cumulus-client-consensus-proposer = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0" }
cumulus-client-consensus-relay-chain = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0" }
cumulus-client-network = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0" }
cumulus-client-service = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0" }
Expand All @@ -171,6 +167,7 @@ cumulus-relay-chain-rpc-interface = { git = "https://github.com/paritytech/polka
pallet-xcm = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
pallet-xcm-benchmarks = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
polkadot-core-primitives = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
polkadot-node-primitives = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
polkadot-parachain-primitives = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
polkadot-runtime = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.3.0", default-features = false }
Expand All @@ -194,6 +191,7 @@ pallet-author-mapping = { path = "pallets/author-mapping", default-features = fa
pallet-author-slot-filter = { path = "pallets/author-slot-filter", default-features = false }
pallet-maintenance_mode = { path = "pallets/maintenance_mode", default-features = false }
pallet-migrations = { path = "pallets/migrations", default-features = false }
pallet-nimbus-async-backing = { path = "pallets/nimbus-async-backing", default-features = false }
nimbus-primitives = { path = "primitives/nimbus-primitives", default-features = false }
session-keys-primitives = { path = "primitives/session-keys", default-features = false }
xcm-primitives = { path = "primitives/xcm", default-features = false }
Expand Down
7 changes: 7 additions & 0 deletions client/consensus/nimbus-consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ sp-runtime = { workspace = true }
substrate-prometheus-endpoint = { workspace = true }

# Cumulus dependencies
cumulus-client-collator = { workspace = true }
cumulus-client-consensus-common = { workspace = true }
cumulus-client-consensus-proposer = { workspace = true }
cumulus-primitives-core = { workspace = true }
cumulus-primitives-parachain-inherent = { workspace = true }
cumulus-relay-chain-interface = { workspace = true }

# Polkadot dependencies
polkadot-node-primitives = { workspace = true }
polkadot-primitives = { workspace = true }

# Nimbus Dependencies
nimbus-primitives = { workspace = true }
Expand Down
Loading
Loading