We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
block.body
1 parent 5cab601 commit c4649e4Copy full SHA for c4649e4
crates/sc-consensus-subspace/src/lib.rs
@@ -1489,9 +1489,12 @@ where
1489
let root_blocks = self.root_blocks.lock();
1490
// If there are root blocks expected to be included in this block, check them
1491
if let Some(correct_root_blocks) = root_blocks.peek(&block_number) {
1492
- // TODO: Why there could be no body? Light client?
1493
let mut found = false;
1494
- for extrinsic in block.body.as_ref().unwrap() {
+ for extrinsic in block
+ .body
1495
+ .as_ref()
1496
+ .expect("Light client or fast sync is unsupported; qed")
1497
+ {
1498
match self
1499
.client
1500
.runtime_api()
0 commit comments