Skip to content

Commit

Permalink
fix check poseidonHashes exhausted (#3393) (#3402)
Browse files Browse the repository at this point in the history
  • Loading branch information
agnusmor authored Feb 29, 2024
1 parent e58832f commit 24d21a2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sequencer/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,9 @@ func (f *finalizer) isBatchResourcesMarginExhausted(resources state.BatchResourc
} else if zkCounters.PoseidonPaddings <= f.getConstraintThresholdUint32(f.batchConstraints.MaxPoseidonPaddings) {
resourceName = "PoseidonPaddings"
result = true
} else if zkCounters.PoseidonHashes <= f.getConstraintThresholdUint32(f.batchConstraints.MaxPoseidonHashes) {
resourceName = "PoseidonHashes"
result = true
} else if zkCounters.Binaries <= f.getConstraintThresholdUint32(f.batchConstraints.MaxBinaries) {
resourceName = "Binaries"
result = true
Expand Down

0 comments on commit 24d21a2

Please sign in to comment.