Open tclemos opened 3 years ago
https://github.com/hermeznetwork/hermez-node/blob/3fc5b4c531394e9d6a9975e2fa798bbd5029e6a4/synchronizer/synchronizer.go#L392-L402
https://github.com/hermeznetwork/hermez-node/blob/3fc5b4c531394e9d6a9975e2fa798bbd5029e6a4/synchronizer/synchronizer.go#L423-L433
Make sure we have or create tests for these situations and then remove the sanity checks
create test
Rationale
https://github.com/hermeznetwork/hermez-node/blob/3fc5b4c531394e9d6a9975e2fa798bbd5029e6a4/synchronizer/synchronizer.go#L392-L402
https://github.com/hermeznetwork/hermez-node/blob/3fc5b4c531394e9d6a9975e2fa798bbd5029e6a4/synchronizer/synchronizer.go#L423-L433
Implementation
Make sure we have or create tests for these situations and then remove the sanity checks