Skip to content

Conversation

@DFINITYManu
Copy link
Contributor

@DFINITYManu DFINITYManu commented Jun 11, 2025

Resolved panic by logging warning and returning an empty map when the node operator has nodes in the registry and rewardable nodes, but somehow no node reward types.

  • Replaced panic! with warn! to log the issue instead of terminating execution.
  • Provided detailed information in the log, including the principal, total nodes allowed, and reward types count.

Addresses (but does not necessarily fix) https://dfinity.atlassian.net/browse/DRE-466 .

Resolved panic by logging warning and returning an empty map when the node operator has nodes in the registry
and rewardable nodes, but somehow no node reward types.

- Replaced `panic!` with `warn!` to log the issue instead of terminating execution.
- Provided detailed information in the log, including the principal, total nodes allowed, and reward types count.
@DFINITYManu DFINITYManu requested a review from a team as a code owner June 11, 2025 11:56
Copy link
Contributor

@NikolaMilosa NikolaMilosa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll approve for now but this should be reviewed by @pietrodimarco-dfinity

@DFINITYManu DFINITYManu merged commit 039b537 into main Jun 11, 2025
10 checks passed
@DFINITYManu DFINITYManu deleted the fixcrash branch June 11, 2025 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants