Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Synchronizer ¶
type Synchronizer struct {
// contains filtered or unexported fields
}
Synchronizer manages a list of StarknetData to fetch the latest blockchain updates
func New ¶ added in v0.2.1
func New(bc *blockchain.Blockchain, starkNetData starknetdata.StarknetData, log utils.SimpleLogger, pendingPollInterval time.Duration, ) *Synchronizer
func (*Synchronizer) HighestBlockHeader ¶ added in v0.3.0
func (s *Synchronizer) HighestBlockHeader() *core.Header
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) StartingBlockNumber ¶ added in v0.3.0
func (s *Synchronizer) StartingBlockNumber() (uint64, error)
Click to show internal directories.
Click to hide internal directories.