Init initializes the fetch package.
(ctx context.Context, peer *rpc.Client)
| 35 | |
| 36 | // Init initializes the fetch package. |
| 37 | func Init(ctx context.Context, peer *rpc.Client) { |
| 38 | // Fetch the generator height periodically. |
| 39 | go pollGeneratorHeight(ctx, peer) |
| 40 | } |
| 41 | |
| 42 | // Fetch runs in a loop, fetching blocks from the configured |
| 43 | // peer (e.g. the generator) and applying them to the local |
nothing calls this directly
no test coverage detected