Skip to content
Commit 0ada6928 authored by Liu-Cheng Xu's avatar Liu-Cheng Xu
Browse files

Avoid updating the state of `allowed_requests` if no block requests are sent

Previously, the state of `allowed_requests` will always be reset to the
default value even if there are no new block requests in the end. This
could cause an edge cause that `peer_block_request()` will early
return next time when no ongoing block requests in fact.
parent 9079f36b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment