Bridge | TX input and wait to execute

Hello team! :wave:

I am looking for the function that runs on each block in the contract runner (or in the contract) to add some extra logs.

For example, in the bridge there is a configured wait of 10 block commits to launch the transaction to ethereum.

A TX with ID "X" arrives -> New message in log
A block is confirmed -> TX with ID "X" now has 9 blocks left.

Where is the function that checks block by block and reviews the transactions to be executed?

I don't know if I explained myself correctly.
It would be a great help to have a full control of the system.

Thank you very much!

Generally there is a processTransaction callback, which is executed when a transaction is accepted. But since I need the transaction to be confirmed, I use the processBlock.

Read more here - Lightweight Contracts