mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
les: Update les/odr_requests.go
This commit is contained in:
parent
920731fe99
commit
58326939b9
1 changed files with 1 additions and 4 deletions
|
|
@ -580,10 +580,7 @@ func (r *TxStatusRequest) CanSend(peer *peer) bool {
|
||||||
peer.lock.RLock()
|
peer.lock.RLock()
|
||||||
defer peer.lock.RUnlock()
|
defer peer.lock.RUnlock()
|
||||||
|
|
||||||
if peer.version < lpv2 {
|
return peer.version > lpv1
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Request sends an ODR request to the LES network (implementation of LesOdrRequest)
|
// Request sends an ODR request to the LES network (implementation of LesOdrRequest)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue