Skip to content

Commit

Permalink
update ext nullifier validation
Browse files Browse the repository at this point in the history
0xKitsune committed Jan 24, 2025
1 parent e736220 commit 9319e22
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions world-chain-builder/crates/world/pbh/src/payload.rs
Original file line number Diff line number Diff line change
@@ -119,10 +119,7 @@ impl PbhPayload {
date: chrono::DateTime<chrono::Utc>,
pbh_nonce_limit: u8,
) -> Result<(), PbhValidationError> {
if valid_dates
.iter()
.all(|d| self.external_nullifier.date_marker() != *d)
{
if self.external_nullifier.date_marker() != DateMarker::from(date) {
return Err(PbhValidationError::InvalidExternalNullifierPeriod);
}

0 comments on commit 9319e22

Please sign in to comment.