+8
30c32e3d84
move substrate-bip39 into polkadot-sdk ( #3579 )
...
Moves [substrate-bip39](https://github.com/paritytech/substrate-bip39 )
into substrate. All git history is preserved. Dependencies have been
updated to use the same version as the rest of the repo.
Fixes https://github.com/paritytech/polkadot-sdk/issues/1934 .
---------
Co-authored-by: Maciej Hirsz <maciej.hirsz@gmail.com >
Co-authored-by: Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com >
Co-authored-by: Gav Wood <i@gavwood.com >
Co-authored-by: Stanislav Tkach <stanislav.tkach@gmail.com >
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
Co-authored-by: Demi M. Obenour <demi@parity.io >
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: NikVolf <nikvolf@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Benjamin Kampmann <ben@gnunicorn.org >
Co-authored-by: Maciej Hirsz <hello@maciej.codes >
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: adoerr <0xad@gmx.net >
Co-authored-by: Jun Jiang <jasl9187@hotmail.com >
Co-authored-by: Dan Shields <35669742+NukeManDan@users.noreply.github.com >
Co-authored-by: Michal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com >
2024-03-07 10:45:56 +00:00
André Silva
adce09057d
sc-manual-seal: don't spawn threads in tests ( #3595 )
...
Hopefully helps with test flakiness.
2024-03-06 14:54:36 +00:00
André Silva
9a27b53e8e
core-fellowship: allow infinite demotion period ( #2828 )
2023-12-31 19:12:36 +01:00
André Silva
b51904da56
use a single source for simple-mermaid dependency ( #2760 )
...
this breaks cargo vendor which is necessary for building polkadot with
nix
2023-12-20 16:38:01 +02:00
André Silva
421af26b1f
Update schnorrkel to 0.11.4 ( #2524 )
2023-12-19 23:24:02 +00:00
André Silva and Bastian Köcher
1f023deab8
sp-core: Rename VrfOutput to VrfPreOutput ( #2534 )
...
This will make more sense after
https://github.com/paritytech/polkadot-sdk/pull/2524 since the
schnorrkel type for VRF outputs is also renamed in the latest version.
Can be reviewed independently though.
Can be merged after https://github.com/paritytech/polkadot-sdk/pull/1577
so that there is less pain for @davxy.
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-12-06 02:19:56 +02:00
André Silva
b0b4451f31
polkadot: remove grandpa pause support ( #2511 )
...
This was never used and we probably don't need it anyway.
2023-11-28 15:00:18 +01:00
André Silva
58a1f9c53d
polkadot: disable block authoring backoff on production networks ( #2510 )
...
Currently the polkadot node will backoff from block authoring if
finality starts lagging. This PR disables this mechanism on production
networks (polkadot and kusama) and adds a flags to optionally force
enabling it.
2023-11-28 11:18:26 +02:00
André Silva
19c05e8d43
Fix trait imports from sp-api ( #2472 )
...
Broken after #2446 .
2023-11-23 18:00:54 +01:00
André Silva
017f8d80b2
polkadot: enable tikv-jemallocator/unprefixed_malloc_on_supported_platforms ( #2002 )
...
This is indirectly enabled by rocksdb crate, better to make it explicit
(https://github.com/tikv/rust-rocksdb/blob/2096b9a161f93e437f7adee49e68cd1570aea42f/librocksdb_sys/Cargo.toml#L35-L38 ).
2023-10-24 14:50:46 +02:00
André Silva and Sebastian Kunert
4ce001be47
bump ed25519-dalek to 2.0 ( #14776 )
...
* bump ed25519-dalek to 2.0
* sp-statement-store: don't use deprecated SecretKey::new
* Remove snow patch
---------
Co-authored-by: Sebastian Kunert <skunert49@gmail.com >
2023-08-21 14:00:59 +00:00
eb9b414644
Companion for substrate#14471 ( #7432 )
...
* Companion for substrate#14471
* add missing MaxNominators constant
* missing MaxNominators in test-runtime
* missing MaxNominators in runtime/integration_tests
* Dont use deprecated functions
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fixup
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
* Update Substrate dep
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2023-07-18 16:03:38 +00:00
André Silva
50a63c30d9
Don't use fixed nominator count for report_equivocation weight calculation ( #14471 )
...
* babe: fix report_equivocation weight calculation
* grandpa: fix report_equivocation weight calculation
* beefy: fix report_equivocation weight calculation
* runtime: add missing MaxNominators constant
2023-07-18 14:11:00 +00:00
André Silva and parity-processbot
9f760192de
companion for substrate#14423 ( #7484 )
...
* companion for substrate#14423
* update lockfile for {"substrate"}
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-07-18 08:06:39 +00:00
André Silva and Oliver Tale-Yazdi
856727bf52
client: fix invalid node name pattern regex ( #14593 )
...
* client: fix invalid name pattern regex
* Update client/cli/src/commands/run_cmd.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* client: test node name is non-empty
* client: add more tests to is_node_name_valid
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-07-18 05:56:40 +00:00
André Silva
c761d4c39e
grandpa: avoid importing unnecessary justifications ( #14423 )
...
* grandpa: avoid importing unnecessary justifications
* grandpa: make justification_import_period configurable
* grandpa: keep the first justification
* grandpa: add test for justification import period
* grandpa: fix test
2023-07-17 17:38:34 +00:00
André Silva
4766ec5531
sc-client-db: add test for reverting finalized blocks ( #14205 )
2023-05-24 09:09:03 +00:00
André Silva and parity-processbot
5a932e1866
Companion for substrate#13883 ( #2460 )
...
* update substrate
* update lockfile for {"polkadot", "substrate"}
---------
Co-authored-by: parity-processbot <>
2023-04-18 10:53:09 +00:00
André Silva and parity-processbot
8d1603e38d
companion for substrate#13883 ( #7059 )
...
* companion for substrate#13883
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-04-18 10:25:03 +00:00
André Silva and Bastian Köcher
e8e22b83b8
babe: replace usage of SharedEpochChanges with internal RPC ( #13883 )
...
* babe: replace usage of SharedEpochChanges with internal RPC
* babe-rpc: fix tests
* babe: use SinkExt::send instead of Sender::try_send
SinkExt::send provides backpressure in case the channel is full
* Update client/consensus/babe/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* babe: fix spawn
* babe: send handles backpressure
* babe: use testing::TaskExecutor
* babe-rpc: better error handling
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-04-18 09:38:04 +00:00
André Silva and Bastian Köcher
da7190a113
grandpa: send neighbor packets to light clients on set transition ( #13559 )
...
* grandpa: send neighbor packets to light clients on set transition
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <git@kchr.de >
* remove match statement
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-03-09 14:05:04 +00:00
André Silva and parity-processbot
4831e96de8
Companion for paritytech/substrate#13551 ( #2278 )
...
* Companion for paritytech/substrate#13551
* update lockfile for {"substrate", "polkadot"}
---------
Co-authored-by: parity-processbot <>
2023-03-07 11:57:49 +00:00
André Silva
13b0f24abd
consensus: remove caching functionality from block import pipeline ( #13551 )
...
* consensus: remove caching functionality from block import pipeline
* client: update docs on Verifier::verify
* node: fix block production benchmark
2023-03-07 11:19:19 +00:00
André Silva
c5b6649ecc
core: remove unused localized signature type ( #13552 )
2023-03-07 10:47:13 +00:00
André Silva
2c37de32bf
im-online: don't disable offending validators ( #13493 )
2023-03-02 12:38:12 +00:00
André Silva
b29584d93a
sp-consensus: remove unused error variants ( #13495 )
2023-03-01 13:04:57 +00:00
André Silva
64bff4529d
babe: account for skipped epochs when handling equivocations ( #13335 )
...
* babe: account for skipped epochs when handling equivocations
* typos
* babe: enforce epoch index >= session index
2023-02-17 11:46:43 +00:00
André Silva
c499b2b80f
grandpa: don't error if best block and finality target are inconsistent ( #13364 )
...
* grandpa: don't error if best block and finality target are inconsistent
* grandpa: add test for best block override
* grandpa: make clippy happy
* grandpa: log selectchain override as debug instead of warn
2023-02-12 13:35:01 +01:00
André Silva and parity-processbot
9253f55605
companion for substrate #13237 ( #6626 )
...
* companion for https://github.com/paritytech/substrate/pull/13237
* test-runtime: add MaxSetIdSessionEntries
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-01-30 16:19:22 +00:00
a46203efb6
grandpa: cleanup stale entries in set id session mapping ( #13237 )
...
* grandpa: cleanup stale entries in set id session mapping
* Update frame/grandpa/src/migrations.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* grandpa: remove unused import
* grandpa: migration off-by-one
* Update frame/grandpa/src/lib.rs
Co-authored-by: Anton <anton.kalyaev@gmail.com >
* Update frame/grandpa/src/lib.rs
Co-authored-by: Anton <anton.kalyaev@gmail.com >
* grandpa: MaxSetIdSessionEntries as u64
* node-template: fix MaxSetIdSessionEntries type
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Anton <anton.kalyaev@gmail.com >
2023-01-30 15:25:11 +00:00
André Silva
56e8eedaa0
grandpa: bump version to v0.16.1 ( #13080 )
2023-01-06 11:52:38 +00:00
André Silva
37e137e57d
aura: remove stale check to skip execution ( #13074 )
2023-01-05 15:19:24 +00:00
André Silva
44768ae56a
grandpa: remove deprecated afg log target ( #13064 )
...
* grandpa: remove deprecated afg log target
* grandpa: define log targets in primitives
2023-01-05 12:33:08 +00:00
André Silva
841fcaba2c
grandpa: pass the actual best block to voting rules ( #12477 )
...
* grandpa: pass the actual best block to voting rules
* grandpa: add test for checking best header is passed to voting rule
2023-01-04 12:49:02 +00:00
André Silva and Bastian Köcher
017cf70378
babe: allow skipping over empty epochs ( #11727 )
...
* babe: allow skipping epochs in pallet
* babe: detect and skip epochs on client
* babe: cleaner epoch util functions
* babe: add test for runtime handling of skipped epochs
* babe: simpler implementation of client handling of skipped epochs
* babe: test client-side handling of skipped epochs
* babe: add comments on client-side skipped epochs
* babe: remove emptyline
* babe: make it resilient to forks
* babe: typo
* babe: overflow-safe math
* babe: add test for skipping epochs across different forks
* Fix tests
* FMT
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-12-24 00:03:31 +00:00
André Silva
7080662f8f
epochs: don't use gap when there's at least one genesis epoch imported ( #11725 )
...
* epochs: don't use gap when there's at least one genesis epoch imported
* epochs: add test for genesis gap fix
2022-06-22 16:03:03 +00:00
André Silva and parity-processbot
46bf80c5df
Companion for substrate#11302 ( #5667 )
...
* bridges: bump finality-grandpa version
* bridges: fix tests
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-06-14 11:22:44 +00:00
André Silva
06cf8ad076
grandpa: fix creation of justification with equivocating precommits in commit ( #11302 )
...
* grandpa: fix creation of justification ancestry
we would reject commits that have precommits targeting blocks lower than the
commit target. when there is an equivocation (or if it the commit is not
minimal) it is possible to have such precommits and we should assume that they
are the round base.
* grandpa: bump to 0.16.0
* grandpa: add test for justification with equivocation
* grandpa: fix failing test
2022-06-14 10:41:11 +00:00
André Silva and parity-processbot
82cb3c0570
Companion for substrate#11113 ( #5406 )
...
* runtime: use ParentBlockRandomness instead of CurrentBlockRandomness
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-05-04 17:14:17 +00:00
André Silva and Bastian Köcher
d6d4068ccc
babe: only process vrf on module finalization ( #11113 )
...
* babe: only process vrf on block execution finalization
* babe: rename CurrentBlockRandomness to PreviousBlockRandomness
* babe: add test for initialization ordering
* babe: rename PreviousBlockRandomness to ParentBlockRandomness
* babe: re-add CurrentBlockRandomness with deprecation notice
* babe: export CurrentBlockRandomness
* babe: silence deprecation warning when exporting CurrentBlockRandomness
* babe: suggestion from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* babe: flatten nested option
* babe: rustfmt
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-05-04 16:14:58 +00:00
André Silva and parity-processbot
719127cac3
Companion for substrate#10878 ( #993 )
...
* companion for slot duration changes
* fix aura inherent data provider
* update lockfile for {"polkadot"}
Co-authored-by: parity-processbot <>
2022-02-22 22:27:29 +00:00
André Silva and parity-processbot
4ff40eb562
Companion for substrate#10878 ( #4940 )
...
* Companion for substrate#10878
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-02-22 21:52:31 +00:00
André Silva
2561e11ed7
consensus-slots: cleanup SlotDuration config ( #10878 )
...
* consensus-slots: cleanup the SlotDuration config
* fix tests
* address review comments
2022-02-22 19:39:16 +00:00
André Silva
7393076df2
build-script-utils: allow reading the git commit hash from env var ( #10845 )
...
* build-script-utils: allow reading the git commit hash from env var
* build-script-utils: make the env var name substrate specific
2022-02-11 19:38:39 +00:00
André Silva
7b33cdf606
Companion for Substrate#10444 ( #4486 )
...
* Companion for Substrate#10444
* update substrate
2021-12-07 22:26:55 +00:00
André Silva
fe6189d370
grandpa: allow authority set hard forks to be forced ( #10444 )
...
* grandpa: allow authority set hard forks to be forced
* grandpa: fix authority set hard forks in warp proof provider
* grandpa: make AuthoritySetHardFork public
* grandpa: extend comment
2021-12-07 22:31:28 +01:00
André Silva
be85d5cb96
Enable BEEFY explicitly ( #4320 )
...
* enable beefy explicitly
* update beefy cli flag docs
2021-11-18 17:10:23 +00:00
9bdded5fe4
Companion for substrate#9448 ( #3527 )
...
* Companion for substrate#9448
* fix on_disabled
* use temporary beefy branch
* revert beefy updates
* update Substrate
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: parity-processbot <>
2021-10-06 17:06:53 +00:00
André Silva and Andronik Ordian
7e5c022aea
staking: only disable slashed validators and keep them disabled for whole era ( #9448 )
...
* session: remove disabled validators threshold logic
* staking: add logic to track offending validators
* staking: disable validators for the whole era
* frame: fix tests
* staking: add tests for disabling validators handling
* staking: fix adding offending validator when already slashed in era
* address review comments
* session, staking: add comments about sorted vecs
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-10-06 16:22:34 +00:00
André Silva and parity-processbot
e9a6689e79
Companion for substrate#9414 ( #3524 )
...
* Companion for substrate#9414
* update Substrate
Co-authored-by: parity-processbot <>
2021-08-03 11:36:23 +00:00
André Silva and Bastian Köcher
0240efde58
aura, babe: don't allow disabled validators to build blocks ( #9414 )
...
* frame-support: add trait for checking disabled validators
* pallet-session: implement DisabledValidators trait
* pallet-babe: check for disabled validators
* pallet-babe: add test for disabled validators
* pallet-aura: check for disabled validators
* pallet-aura: add test for disabled validators
* runtime: fix missing DisableValidator
* test-runtime: add missing DisabledValidators
* frame-support: clean up doc
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-08-03 10:57:08 +00:00
André Silva
44ace31bee
build: nix-shell: use mozilla/nixpkgs-mozilla repo ( #9456 )
2021-07-29 11:13:08 +00:00
André Silva
3086b319de
bump spec version of statemine and westmint ( #539 )
2021-07-16 10:23:00 +02:00
André Silva
0b4f87fbbe
build: fix nix shell ( #9288 )
...
* build: fix deprecated stdenv.lib in nix shell
* build: fix libclang_path in nix shell
* build: update rust toolchain in nix shell
2021-07-06 11:06:11 +00:00
André Silva
e35261c605
grandpa: fix broken line breaks in logging ( #9179 )
2021-06-23 07:50:48 +00:00
André Silva
4069877c1c
consensus: remove unused offline tracker ( #9178 )
2021-06-23 05:01:11 +00:00
6b408d1e38
runtime: remove randomness collective flip pallet ( #3347 )
...
* runtime: remove randomness collective flip pallet
* add storage migration to remove key
Co-Authored-By: parity-processbot <>
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-22 23:36:04 +00:00
André Silva
5899eedc8c
grandpa: don't use block_on in Environment::report_equivocation ( #9154 )
...
* grandpa: don't use block_on in Environment::report_equivocation
* grandpa: add issue number to todo
2021-06-21 16:02:08 +00:00
André Silva and parity-processbot
fc7f6dbfd9
Companion for substrate#9128 ( #3268 )
...
* support async selectchain
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-20 11:39:20 +00:00
André Silva and Robert Habermeier
8f733a6c2c
use max_block_proposal_slot_portion ( #499 )
...
* use max_block_proposal_slot_portion
* remove patch now that Substrate PR is merged
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-06-20 11:05:08 +00:00
André Silva
a26ec52450
make SelectChain async ( #9128 )
...
* make SelectChain async
* make JustificationImport async
2021-06-20 11:01:09 +00:00
André Silva and parity-processbot
85936d2862
Companion for substrate#9138 ( #3294 )
...
* fix babe params
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-19 21:08:00 +00:00
André Silva and Bastian Köcher
650fc2f9c9
slots: slot lenience must take into account block proposal portion ( #9138 )
...
* aura, babe: proposal slot lenience must take into account proposal portion
* slots: add support for max_block_proposal_slot_portion
* fix compilation
* slots: add tests
* aura: fix comment
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* slots: log the actual proposing duration after lenience is applied
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-06-19 20:37:33 +00:00
André Silva
0417e4e37f
babe: add comments to block weight and expose block_weight function ( #9145 )
...
* babe: add comments to block weight and expose block_weight function
* babe: expose function for block weight key
2021-06-19 12:40:53 +00:00
André Silva
90d47870a9
grandpa: restrict grandpa gossip ( #9131 )
...
* grandpa: make gossip more conservative (and fair)
* grandpa: make round commit timer dependent on gossip_duration
* grandpa: add gossip tests
* grandpa: reduce variance in tests
2021-06-18 19:31:00 +00:00
André Silva and parity-processbot
4b3ec9c97d
bridges: update finality-grandpa to 0.14.1 ( #3266 )
...
* bridges: update finality-grandpa
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-16 13:23:39 +00:00
André Silva
ae5cd339b5
grandpa: cleanup sync bounds ( #9127 )
...
* grandpa: cleanup sync bounds
* grandpa: cleanup imports
* remove cargo patch
2021-06-16 12:51:09 +00:00
d8d61bad36
implement dispute participation subsystem ( #3234 )
...
* implement dispute participation subsystem
* guide: minor fix in dispute participation
* Update node/core/dispute-participation/src/lib.rs
Co-authored-by: Andronik Ordian <write@reusable.software >
* dispute: add comments to participation logic
* dispute-coordinator: fix test compilation
* implementers-guide: update dispute participation
* dispute-participation: add error for missing validation code
* dispute-participation: add tests
* Update node/core/dispute-participation/src/lib.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* guide: update overseer protocol dispute participation message
* dispute-participation: remove duplication in tests
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2021-06-14 15:41:02 -05:00
André Silva
097cadca19
create newtype for ValidationCodeHash ( #3212 )
...
* create newtype for ValidationCodeHash
* pvf: fix tests compilation
* primitives: fix test compilation
2021-06-12 16:44:07 +00:00
André Silva
f21243e4e5
im-online: send heartbeats at a random period ( #8819 )
...
* im-online: send heartbeats at a random period
* support: use permill to represent session progress
* im-online: increase probability of heartbeating with session progress
* babe, session: fix tests
* babe: fix test
2021-06-12 15:58:36 +00:00
André Silva
8c3bc2b2bb
replace HistoricalValidationCode usages with ValidationCodeByHash ( #3210 )
...
* replace HistoricalValidationCode usages with ValidationCodeByHash
* runtime-api: tabify tests file
* update implementers guide
2021-06-11 18:00:57 +00:00
André Silva
b22766dab3
grandpa: ignore justifications from other consensus engines ( #9075 )
2021-06-11 11:18:41 +00:00
André Silva
6f29754cce
node: fix grandpa voting rule ( #3190 )
...
* node: fix grandpa voting rule
* node: cleanup find_target
2021-06-07 14:45:27 -05:00
André Silva and Gav Wood
f0c5699bc6
arithmetic: fix PerThing pow ( #9030 )
...
* arithmetic: add failing test for pow
* arithmetic: fix PerThing::pow
* Revert back to previous optimisations
Co-authored-by: Gav Wood <gavin@parity.io >
2021-06-06 10:07:29 +02:00
André Silva and parity-processbot
9c014f7c8b
node: fix babe worker params ( #2956 )
...
* node: fix babe worker params
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-04 22:01:09 +00:00
André Silva
c44b552d8f
consensus: handle justification sync for blocks authored locally ( #8698 )
...
* consensus: add trait to control justification sync process
* network: implement JustificationSyncLink for NetworkService
* slots: handle justification sync in slot worker
* babe: fix slot worker instantiation
* aura: fix slot worker instantiation
* pow: handle justification sync in miner
* babe: fix tests
* aura: fix tests
* node: fix compilation
* node-template: fix compilation
* consensus: rename justification sync link parameter
* aura: fix test compilation
* consensus: slots: move JustificationSyncLink out of on_slot
2021-06-04 21:31:06 +00:00
André Silva
444aafdf83
primitives: export the current slot number storage key ( #3022 )
2021-05-27 12:41:49 +02:00
André Silva and parity-processbot
e3edb71ed7
grandpa: enable observer for light client ( #3019 )
...
* grandpa: enable observer for light client
* update Substrate
* service: fix missing import
* runtime: bump spec versions
Co-authored-by: parity-processbot <>
2021-05-26 17:22:15 +00:00
André Silva and Pierre Krieger
61507e1ba3
grandpa: enable light clients to participate in gossip ( #8796 )
...
* network: allow gossiping to light clients
* grandpa: gossip global messages to light clients
* grandpa: don't send neighbor packets to light clients
* grandpa: fix tests
* grandpa: export run_grandpa_observer
* node: run grandpa observer on light client
* node: start network at end
* Use wasm_timer in finality-grandpa
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
2021-05-26 11:33:11 +00:00
André Silva
00328dca24
grandpa: fix warp sync proof on missing data ( #8795 )
...
* grandpa: check for missing data when iterating through authority set changes
* grandpa-warp-sync: handle missing data
2021-05-22 17:12:42 +00:00
André Silva
d362e6051c
kusama, westend: use proper parachain session keys ( #2975 )
...
* runtime: westend: don't use placeholder parachains session keys
* runtime: kusama: don't use placeholder parachains session keys
2021-05-04 11:21:54 -05:00
c6df9fcb11
runtime: remove random_seed from BlockBuilder API ( #2968 )
...
* runtime: remove random_seed from BlockBuilder API
* update Substrate
* runtime: remove unused imports
* revert Cargo.lock version 3 removal, update sp-io
Co-authored-by: parity-processbot <>
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-05-04 11:01:33 +00:00
André Silva
bbf0812994
runtime: remove beefy and mmr from westend (again) ( #2972 )
...
* runtime: remove beefy and mmr from westend (again)
* node: add borked westend runtime upgrade as bad block
2021-05-04 10:16:20 +00:00
André Silva
122cb6038a
primitives: remove random_seed from BlockBuilder API ( #8718 )
...
* primitives: remove random_seed from BlockBuilderApi
* node: remove random_seed
* primitives: bump BlockBuilderApi version
* client: rpc: fix test
2021-05-04 09:29:44 +00:00
André Silva
c0fcaa6bd9
runtime: remove BabePalletPrefix impls for old migration ( #2967 )
2021-05-03 17:27:32 +02:00
ae558997a8
Introduce Wococo testnet ( #2918 )
...
* runtime: remove mmr and beefy from westend runtime
* runtime: westend: remove pallet_beefy config
* node: only start beefy gadget on rococo
* node: remove beefy keys from westend chain spec
* node: add wococo testnet chain spec
* node: add comments about beefy gadget task
* runtime: update wococo chainspec
* Remove stale comment
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
Co-authored-by: adoerr <0xad@gmx.net >
2021-04-22 15:28:23 +00:00
André Silva
c25e79d8c4
runtime: remove mmr and beefy from westend runtime ( #2916 )
...
* runtime: remove mmr and beefy from westend runtime
* runtime: westend: remove pallet_beefy config
* node: only start beefy gadget on rococo
* node: remove beefy keys from westend chain spec
2021-04-21 20:31:06 +00:00
André Silva
142a0aec2f
runtime: prepare Westend runtime for BEEFY ( #2914 )
...
* runtime: bump westend spec_version and add beefy keys migration
* bump beefy
* runtime: revert westend spec_version change
2021-04-21 12:00:14 +00:00
André Silva
9de727bb17
Update substrate ( #2910 )
2021-04-20 19:26:38 +00:00
André Silva
eca26ac5d0
Bump BEEFY ( #2906 )
...
* bump substrate
* bump beefy
* bump beefy again
* bump beefy
2021-04-20 16:54:16 +00:00
André Silva
a52adf448b
client: remove time unit from block time loaded message ( #8639 )
2021-04-19 20:29:43 +00:00
André Silva
fd0700abad
build: update shell.nix ( #8616 )
2021-04-14 08:58:26 +00:00
André Silva and Andronik Ordian
68626198f8
runtime: fix the session keys migration that includes the beefy key type ( #2855 )
...
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-04-08 21:51:46 +02:00
André Silva
34458e9b9c
grandpa: always store justification for the latest finalized block ( #8392 )
...
* grandpa: always store justification for best finalized block
* grandpa-warp-sync: add latest justification when finished proving
* grandpa-warp-sync: change logic for sending best justification when finished
* grandpa: test storing best justification
* grandpa: reorder variants in WarpSyncFinished
2021-04-01 09:42:56 +00:00
André Silva
68d8b810c4
client: fix justifications migration ( #8489 )
...
* client: rename variables
* client: fix justifications migration
* client: fix compilation
2021-03-30 11:08:05 +00:00
André Silva
7149f764e4
rococo: use insecure parent hash randomness ( #2701 )
2021-03-25 10:49:40 +01:00
André Silva
bfbb078525
collator-protocol: add message authentication ( #2635 )
...
* collator: authenticate collator protocol messages
* fix tests compilation
* node: verify collator protocol signatures in tests
* collator: fix tests
* implementers-guide: update CollatorProtocol messages
* collator: add test for verification of collator protocol signatures
* node: remove fixmes
* node: remove signature from advertisecollation message
* node: add magic constant to Declare message signature payload
2021-03-24 22:13:32 +01:00
André Silva
ee8e7f1bcd
grandpa: speed up tests ( #8439 )
...
* grandpa: tests: add peers with authority role
* grandpa: tests: manually wake-up poll_fn future
2021-03-24 09:56:25 +01:00
André Silva and parity-processbot
7966d2b4b7
runtime: define NextSessionRotation in im-online instances ( #2602 )
...
* runtime: define NextSessionRotation in im-online instances
* "Update Substrate"
Co-authored-by: parity-processbot <>
2021-03-12 13:55:34 +00:00
André Silva
acdcab05f9
node: decrease block production backoff max interval on rococo ( #2614 )
2021-03-12 12:58:47 +01:00