helium / blockchain-core

Apache License 2.0
214 stars 85 forks source link

Allow res5 hex garabage collection #1471

Closed PaulVMo closed 1 year ago

PaulVMo commented 1 year ago

Ideally, garbage collection of inactive gateways in the h3dex should be performed at the same resolution as targeting. This will ensure that every hex that can be targeted can also be garbage collected. Currently, targeting is performed at h3 res5 however garbage collection is performed at res7. This results in entire res7 hexes within a res5 that are never garbage collected and thus skew targeting.

This PR updates the validation in the var txn to allow the collection res to be changed from 7 to 5.

CC: @evanmcc