helium / blockchain-core

Apache License 2.0
214 stars 85 forks source link

Reapply is_hex_populated optimization #1427

Closed PaulVMo closed 2 years ago

PaulVMo commented 2 years ago

This change reapplies portion of reverted #1409, specifically the change to check for whether any hex is populated versus counting all the gateways in a hex. This change also includes a fix to that functionality to handle the throw behavior in a cache context in cache_fold.