[ethereum/go-ethereum] les: implement ulc (#16904)

zsfelfoldi commented on this pull request.

> @@ -729,7 +901,8 @@ type updateStatsEntry struct {
// Those who have not confirmed such a head by now will be updated by a subsequent checkUpdateStats call with a
// positive block delay value.
func (f *lightFetcher) updateMaxConfirmedTd(td *big.Int) {
— if f.maxConfirmedTd == nil || td.Cmp(f.maxConfirmedTd) > 0 {
+ maxConfirmedTd := f.maxConfirmedTd

Why? You can just use f.maxConfirmedTd in the next line.

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