mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 03:31:45 +00:00
Use JsonPayload for payload reconstruction (#3797)
This commit is contained in:
@@ -76,7 +76,7 @@ impl<T: EthSpec> Block<T> {
|
||||
|
||||
pub fn as_execution_block_with_tx(&self) -> Option<ExecutionBlockWithTransactions<T>> {
|
||||
match self {
|
||||
Block::PoS(payload) => Some(payload.clone().into()),
|
||||
Block::PoS(payload) => Some(payload.clone().try_into().unwrap()),
|
||||
Block::PoW(_) => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user