spacemeshos / post

Spacemesh POST protocol implementation
MIT License
20 stars 21 forks source link

Fix nil exception in numUnits check #272

Closed fasmat closed 9 months ago

fasmat commented 9 months ago

When initializing a new PoST data dir a nil pointer exception would occur when providing a numUnits value.

This fixes this exception.

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 74.3%. Comparing base (a8a58c6) to head (cec70f3).

:exclamation: Current head cec70f3 differs from pull request most recent head fdd5647. Consider uploading reports for the commit fdd5647 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #272 +/- ## ======================================= Coverage 74.3% 74.3% ======================================= Files 29 29 Lines 1543 1543 ======================================= Hits 1147 1147 Misses 258 258 Partials 138 138 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.