Skip to content

Commit 8717281

Browse files
author
colinlyguo
committed
remove proof sanity check inside transaction construction function
1 parent 2d4f792 commit 8717281

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

rollup/internal/controller/relayer/l2_relayer.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,11 +1058,6 @@ func (r *Layer2Relayer) constructFinalizeBundlePayloadCodecV7(dbBatch *orm.Batch
10581058
return nil, fmt.Errorf("batch %d state root is zero", dbBatch.Index)
10591059
}
10601060

1061-
// Check proof if present
1062-
if aggProof != nil && len(aggProof.Proof()) == 0 {
1063-
return nil, fmt.Errorf("aggregate proof is empty")
1064-
}
1065-
10661061
if aggProof != nil { // finalizeBundle with proof.
10671062
calldata, packErr := r.l1RollupABI.Pack(
10681063
"finalizeBundlePostEuclidV2",
@@ -1095,11 +1090,6 @@ func (r *Layer2Relayer) constructFinalizeBundlePayloadCodecV7(dbBatch *orm.Batch
10951090
}
10961091

10971092
func (r *Layer2Relayer) constructFinalizeBundlePayloadValidium(dbBatch *orm.Batch, endChunk *orm.Chunk, aggProof *message.OpenVMBundleProof) ([]byte, error) {
1098-
// Check proof if present
1099-
if aggProof != nil && len(aggProof.Proof()) == 0 {
1100-
return nil, fmt.Errorf("aggregate proof is empty")
1101-
}
1102-
11031093
log.Info("Packing validium finalizeBundle", "batchHeaderLength", len(dbBatch.BatchHeader), "codecVersion", dbBatch.CodecVersion, "totalL1Messages", endChunk.TotalL1MessagesPoppedBefore+endChunk.TotalL1MessagesPoppedInChunk, "stateRoot", dbBatch.StateRoot, "withdrawRoot", dbBatch.WithdrawRoot, "withProof", aggProof != nil)
11041094

11051095
var proof []byte

0 commit comments

Comments
 (0)