From 24d21a2b8654324e26a97956a340448e47cb7270 Mon Sep 17 00:00:00 2001 From: agnusmor <100322135+agnusmor@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:52:23 +0100 Subject: [PATCH] fix check poseidonHashes exhausted (#3393) (#3402) --- sequencer/batch.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sequencer/batch.go b/sequencer/batch.go index 74cda751c4..26fda94aa4 100644 --- a/sequencer/batch.go +++ b/sequencer/batch.go @@ -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