mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
fix: return zero latestValidHash pre-merge (#1677)
This commit is contained in:
@@ -145,6 +145,11 @@ impl PayloadStatus {
|
||||
pub fn from_status(status: PayloadStatusEnum) -> Self {
|
||||
Self { status, latest_valid_hash: None }
|
||||
}
|
||||
|
||||
pub fn with_latest_valid_hash(mut self, latest_valid_hash: H256) -> Self {
|
||||
self.latest_valid_hash = Some(latest_valid_hash);
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user