-
Notifications
You must be signed in to change notification settings - Fork 366
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
Enable warp sync #901
Merged
Merged
Enable warp sync #901
Changes from 40 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
89f7f00
Substrate updates
Dinonard 6c3820c
Everything required except XCM
Dinonard 8cbd0fc
Fix deps
Dinonard 817d40a
Fix messed dependencies repos
Dinonard d48798f
Progress with Shibuya XCM & some leftover for other parts
Dinonard f0d4ca1
Frontier miss
Dinonard cdd8ac1
Shibuya fixes
Dinonard 751200c
Additional bumps & fixes
Dinonard ebae80e
Shibuya compiles
Dinonard a208ccd
Shibuya additonal change
Dinonard 84541e8
Local runtime
Dinonard 478df92
Shiden compiles
Dinonard 4b8633f
Astar
Dinonard 306960a
xcm-tools fix
Dinonard 92b974c
client progress
Dinonard a9e33e3
Client finished
Dinonard 01fc717
evm-tracing adjustment
Dinonard 421ab82
Bump
Dinonard c6533d0
Updated xc-asset-config & added migration
Dinonard d1d4298
Sorting out some TODOs
Dinonard 1d088b6
Progress with xcm-simulator
Dinonard b77f602
xcm simulator tests - 1 issue remains
Dinonard 806266e
Xcm simulator resolved
Dinonard adb33e2
Fix CI issue
Dinonard bdd1a11
Another fix
Dinonard 7adf671
Additional updates & TODOs resolution
Dinonard 14094c5
Updated SafeCallFilter - more work required
Dinonard 62f1a9f
PoV size as part of unit weight cost
Dinonard cef4fb1
Latest dapps-staking benchmarks code
Dinonard 2113d44
Updated weights in astar-frame
Dinonard 1818e3a
Add pallet-xcm to benchmarks
Dinonard 2e1135a
Improved safe call filter
Dinonard 207f5d5
Weight re-work
Dinonard b6ecc49
XCM weights from benchmarks
Dinonard 16c50e1
SafeCallFilter for Astar
Dinonard 89bc043
Deps bump
Dinonard aa06997
Enable warp sync
shunsukew 5516e67
remove WarpSync from local node
shunsukew b7bafc2
resolved conflicts
shunsukew 7086dd5
fix block import queue verifier
shunsukew 13c5c93
bump version
shunsukew c87702d
merged master
shunsukew File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
use cumulus_client_consensus_common::{ParachainCandidate, ParachainConsensus}; | ||
use cumulus_primitives_core::relay_chain::{Hash as PHash, PersistedValidationData}; | ||
use futures::lock::Mutex; | ||
use sc_consensus::{import_queue::Verifier as VerifierT, BlockImportParams}; | ||
use sc_consensus::{import_queue::Verifier as VerifierT, BlockImportParams, ForkChoiceStrategy}; | ||
use sp_api::ApiExt; | ||
use sp_consensus::CacheKeyId; | ||
use sp_consensus_aura::{sr25519::AuthorityId as AuraId, AuraApi}; | ||
|
@@ -113,14 +113,25 @@ where | |
{ | ||
async fn verify( | ||
&mut self, | ||
block_import: BlockImportParams<Block, ()>, | ||
mut block_import: BlockImportParams<Block, ()>, | ||
) -> Result< | ||
( | ||
BlockImportParams<Block, ()>, | ||
Option<Vec<(CacheKeyId, Vec<u8>)>>, | ||
), | ||
String, | ||
> { | ||
// Skip checks that include execution, if being told so or when importing only state. | ||
// | ||
// This is done for example when gap syncing and it is expected that the block after the gap | ||
// was checked/chosen properly, e.g. by warp syncing to this block using a finality proof. | ||
// Or when we are importing state only and can not verify the seal. | ||
if block_import.with_state() || block_import.state_action.skip_execution_checks() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://github.com/paritytech/substrate/issues/13921#issuecomment-1518812972 |
||
// When we are importing only the state of a block, it will be the best block. | ||
block_import.fork_choice = Some(ForkChoiceStrategy::Custom(block_import.with_state())); | ||
return Ok((block_import, None)); | ||
} | ||
|
||
let block_hash = *block_import.header.parent_hash(); | ||
|
||
if self | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just interested, how come we can get rid of
block_announce_validator_builder
? Is it not required or deprecated?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
build_network
is doing this internally.