Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Latest commit

 

History

History
16 lines (8 loc) · 622 Bytes

Readme.md

File metadata and controls

16 lines (8 loc) · 622 Bytes

Main application struct

Commander in commander.go is the main App struct.

rollupLoop periodically creates rollupLoopIteration. Batches have min and max size.

accounts.go: syncAccounts Synchronizes on-chain account state to internal state.

batches.go: syncBatches Synchronizes on-chain batch state to internal state.

registered_tokens.go: syncTokens Synchronizes on-chain registered tokens to internal state.

new_block.go: newBlockLoop Watches for new blocks. Triggers syncing methods.

syncForward: Sync a batch of blocks (batched for internal efficiency, not visible from the outside).