@@ -159,7 +159,7 @@ func (m *Adapter[RPC, HEAD]) LatestBlock(ctx context.Context) (HEAD, error) {
159159 return head , errors .New ("invalid head" )
160160 }
161161
162- m .onNewHead (ctx , chStopInFlight , head )
162+ m .OnNewHead (ctx , chStopInFlight , head )
163163 return head , nil
164164}
165165
@@ -176,11 +176,11 @@ func (m *Adapter[RPC, HEAD]) LatestFinalizedBlock(ctx context.Context) (HEAD, er
176176 return head , errors .New ("invalid head" )
177177 }
178178
179- m .onNewFinalizedHead (ctx , chStopInFlight , head )
179+ m .OnNewFinalizedHead (ctx , chStopInFlight , head )
180180 return head , nil
181181}
182182
183- func (m * Adapter [RPC , HEAD ]) onNewHead (ctx context.Context , requestCh <- chan struct {}, head HEAD ) {
183+ func (m * Adapter [RPC , HEAD ]) OnNewHead (ctx context.Context , requestCh <- chan struct {}, head HEAD ) {
184184 if ! head .IsValid () {
185185 return
186186 }
@@ -198,7 +198,7 @@ func (m *Adapter[RPC, HEAD]) onNewHead(ctx context.Context, requestCh <-chan str
198198 }
199199}
200200
201- func (m * Adapter [RPC , HEAD ]) onNewFinalizedHead (ctx context.Context , requestCh <- chan struct {}, head HEAD ) {
201+ func (m * Adapter [RPC , HEAD ]) OnNewFinalizedHead (ctx context.Context , requestCh <- chan struct {}, head HEAD ) {
202202 if ! head .IsValid () {
203203 return
204204 }
0 commit comments