Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrSyncFailed ¶
func (ErrSyncFailed) Error ¶
func (e ErrSyncFailed) Error() string
type Synchronizer ¶
type Synchronizer struct {
Blockchain *blockchain.Blockchain
StarknetData starknetdata.StarknetData
// contains filtered or unexported fields
}
Synchronizer manages a list of StarknetData to fetch the latest blockchain updates
func NewSynchronizer ¶
func NewSynchronizer(bc *blockchain.Blockchain, starkNetData starknetdata.StarknetData, log utils.SimpleLogger) *Synchronizer
func (*Synchronizer) Run ¶
func (s *Synchronizer) Run(ctx context.Context) error
Run starts the Synchronizer, returns an error if the loop is already running
func (*Synchronizer) SyncBlocks ¶
func (s *Synchronizer) SyncBlocks(syncCtx context.Context) error
Click to show internal directories.
Click to hide internal directories.