diff --git a/crates/bin/pindexer/src/block.rs b/crates/bin/pindexer/src/block.rs index 21ee69dc79..62ff294a35 100644 --- a/crates/bin/pindexer/src/block.rs +++ b/crates/bin/pindexer/src/block.rs @@ -40,9 +40,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( "