You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
// Check the block isn't so old we won't be able to enact it.
364
363
let best_block_number = client.chain.read().best_block_number();
365
364
if client.pruning_info().earliest_state > header.number(){
366
365
warn!(target:"client","Block import failed for #{} ({})\nBlock is ancient (current best block: #{}).", header.number(), header.hash(), best_block_number);
367
-
returnErr(());
366
+
bail!("Block is ancient");
368
367
}
369
368
370
369
// Check if parent is in chain
371
370
let parent = match client.block_header_decoded(BlockId::Hash(*header.parent_hash())){
372
371
Some(h) => h,
373
372
None => {
374
373
warn!(target:"client","Block import failed for #{} ({}): Parent not found ({}) ", header.number(), header.hash(), header.parent_hash());
0 commit comments