Skip to content

Commit

Permalink
adding todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard-Voiculescu committed Aug 14, 2024
1 parent d7be72a commit 82e546e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions poller/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func (f *RPCBlockFetcher) IsBlockAvailable(requestedSlot uint64) bool {
return true
}

// todo: move this to chain specific package
func (f *RPCBlockFetcher) fetchLatestBlockNum(ctx context.Context) (uint64, error) {
var errs error
for _, rpcClient := range f.rpcClients {
Expand Down Expand Up @@ -92,6 +93,7 @@ func (f *RPCBlockFetcher) Fetch(ctx context.Context, requestBlockNum uint64) (b
return bstreamBlock, false, nil
}

// todo: move this to chain specific package
func (f *RPCBlockFetcher) fetchBlock(ctx context.Context, requestBlockNum int64) (*ctypes.ResultBlock, error) {
var errs error
for _, rpcClient := range f.rpcClients {
Expand All @@ -107,6 +109,7 @@ func (f *RPCBlockFetcher) fetchBlock(ctx context.Context, requestBlockNum int64)
return nil, errs
}

// todo: move this to chain specific package
func (f *RPCBlockFetcher) fetchBlockResults(ctx context.Context, requestBlockNum int64) (*ctypes.ResultBlockResults, error) {
var errs error
for _, rpcClient := range f.rpcClients {
Expand Down

0 comments on commit 82e546e

Please sign in to comment.