diff --git a/crates/bin/pindexer/src/block.rs b/crates/bin/pindexer/src/block.rs index 6f3aa3b676..47e1318647 100644 --- a/crates/bin/pindexer/src/block.rs +++ b/crates/bin/pindexer/src/block.rs @@ -39,9 +39,7 @@ CREATE TABLE IF NOT EXISTS block_details ( _src_db: &PgPool, ) -> Result<(), anyhow::Error> { let pe = pb::EventBlockRoot::from_event(event.as_ref())?; - let timestamp = pe - .timestamp - .ok_or(anyhow!("block at height {} has no timestamp", pe.height))?; + let timestamp = pe.timestamp.unwrap_or_default(); sqlx::query( "