diff --git a/lite/provider.go b/lite/provider.go index 6fcb51ad0..8aec819da 100644 --- a/lite/provider.go +++ b/lite/provider.go @@ -136,5 +136,8 @@ func (cp *ConcurrentProvider) UpdateToHeight(chainID string, height int64) error } // Is not the first call, so return the error from previous concurrent calls. + if callback != nil { + panic("expected callback to be nil") + } return pr.err }