Currently, the queries to L1 for verifications and sequences are done inside the stages. This slows them down needlessly, since they have to query for new blocks each time.
A better solution os to bring the syncing in a separate thread and pass the verifications and sequences in channels. Then the stages will just check for new data in the channels and continue if none is present.
Currently, the queries to L1 for verifications and sequences are done inside the stages. This slows them down needlessly, since they have to query for new blocks each time.
A better solution os to bring the syncing in a separate thread and pass the verifications and sequences in channels. Then the stages will just check for new data in the channels and continue if none is present.