helium / blockchain-core

Apache License 2.0
214 stars 85 forks source link

Handle no hexes on a new network #1400

Closed jadeallenx closed 2 years ago

jadeallenx commented 2 years ago

Problem to solve: While standing up devnet, I noticed a lot of crashes in sibyl. Previously, this would cause a crash in sibyl due to a bad match error.

Proposed solution: If there are no hexes available, return an empty list instead of crashing on a bad match. The rest of the call chain already handles errors more gracefully than crashing.