spacemeshos / poet

Spacemesh PoET service reference implementation
MIT License
22 stars 13 forks source link

fix: submitting with hint when only main certifier is configured #525

Closed poszu closed 1 month ago

poszu commented 1 month ago

Closes #523

The Registration now always adds the main key to the map of trusted keys to fix registering with a hint when the trusted keys dir is not configured.

I added tests to cover this scenario and refactored the tests to reduce boilerplate, obscuring the test logic.

codecov[bot] commented 1 month ago

Codecov Report

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

Project coverage is 80.8%. Comparing base (5591b98) to head (66d3188). Report is 2 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #525 +/- ## ========================================= + Coverage 80.6% 80.8% +0.2% ========================================= Files 27 27 Lines 1868 1871 +3 ========================================= + Hits 1506 1513 +7 + Misses 231 228 -3 + Partials 131 130 -1 ```

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