Skip to content

Comments

Breakup RPCBlock into LookupBlock & RangeSyncBlock#8860

Open
ethDreamer wants to merge 7 commits intosigp:unstablefrom
ethDreamer:rpc_block_breakup
Open

Breakup RPCBlock into LookupBlock & RangeSyncBlock#8860
ethDreamer wants to merge 7 commits intosigp:unstablefrom
ethDreamer:rpc_block_breakup

Conversation

@ethDreamer
Copy link
Member

This should make sync and the DA checker much more clear.

@ethDreamer ethDreamer changed the title Breakup RPCBlock into LookupBlock and RangeSyncBlock Breakup RPCBlock into LookupBlock & RangeSyncBlock Feb 18, 2026
)
.await?
.try_into()
.expect("block blobs are available")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the expect message is a bit misleading since we are not expecting a block w/ blobs

Copy link
Member

@eserilev eserilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. Really makes things much clearer imo

I just had a few questions about a few test functions

)
.await?
.try_into()
.expect("block blobs are available")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the expect message is a bit misleading since we are not expecting a block w/ blobs

RangeSyncBlock::new(
block,
None,
AvailableBlockData::NoData,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this should be a LookupSync block, since we were previously passing None as BlockData in RpcBlock::new

Comment on lines +2605 to +2616
let block_data = if let Some(blobs) = blobs {
AvailableBlockData::new_with_blobs(blobs)
} else {
RpcBlock::new(
block,
None,
&self.chain.data_availability_checker,
self.chain.spec.clone(),
)?
}
AvailableBlockData::NoData
};

RangeSyncBlock::new(
block,
block_data,
&self.chain.data_availability_checker,
self.chain.spec.clone(),
)?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont think this keeps the previous test logic intact. I think that passing None to BlockData during RpcBlock construction should be equivalent to constructing a LookupSync block

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants