From 052cf2d7f3ac3f08a09920336d3755df845cbe02 Mon Sep 17 00:00:00 2001 From: Sergey Timoshin Date: Fri, 3 Jan 2025 15:03:03 +0000 Subject: [PATCH] Remove redundant validation checks in CreateWitness --- prover/server/prover/batch_address_append_circuit.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/prover/server/prover/batch_address_append_circuit.go b/prover/server/prover/batch_address_append_circuit.go index 743486def..e8bebb81f 100644 --- a/prover/server/prover/batch_address_append_circuit.go +++ b/prover/server/prover/batch_address_append_circuit.go @@ -149,13 +149,6 @@ func InitBatchAddressTreeAppendCircuit(treeHeight uint32, batchSize uint32) Batc } func (params *BatchAddressAppendParameters) CreateWitness() (*BatchAddressTreeAppendCircuit, error) { - if params.BatchSize == 0 { - return nil, fmt.Errorf("batch size cannot be 0") - } - if params.TreeHeight == 0 { - return nil, fmt.Errorf("tree height cannot be 0") - } - circuit := &BatchAddressTreeAppendCircuit{ BatchSize: params.BatchSize, TreeHeight: params.TreeHeight,