Bug Report
Description
When MaxCertSize is set to a non-zero value, some bridge events may be ignored. This happens because toBlock is updated in the limitCertSize method, but the outdated toBlock value is used when saving the certificate.
To Reproduce
- set
MaxCertSize = 1000000
- start a mock L1 and L2 and CDK
- sending 1000 bridge txs on L1 and L2 and waiting the pp generated
Expected behavior
no bridge events will be ignored
Bug Report
Description
When
MaxCertSizeis set to a non-zero value, some bridge events may be ignored. This happens becausetoBlockis updated in thelimitCertSizemethod, but the outdatedtoBlockvalue is used when saving the certificate.To Reproduce
MaxCertSize = 1000000Expected behavior
no bridge events will be ignored