[ethereum/go-ethereum] light: CHT and bloom trie indexers working in light mode (#16534)

dshulyak requested changes on this pull request.

> + if err == ErrNoPeers {
+ // if there are no peers to serve, retry later
+ select {
+ case <-c.quit: + return fmt.Errorf("Section processing cancelled") + case <-time.After(time.Second * 10): + } + } else { + break + } + } + if err == nil { + r.Proof.Store(batch) + err = batch.Write() + } + if err == ctx.Err() { in case if ctx.Err() and err is nil it will still return an error

Добавить комментарий