Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add logging for signer & validator set #1723

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matthew-alexander-partior

This PR aims to simplify debugging validator set related issues

Problem Statement:
Given a quorum IBFT network, with a validator set that is a subset of the network

When a node that is not part of the validator set sends consensus message, the receiving node will log an error:
Failed to decode message from payload

In here, the receiving node does an ecrecover on the message sent, but the address recovered is not part of the validator set

Logging here not sufficient to determine:

  • Which node was sending the message that is not part of the validator set?
  • Who is in the validator set now?

Solution

  • Adds logs for validatorSet & sender node address when error occurs (on DEBUG mode)

* feat: SET-460 Add logging for validator set

* feat: SET-460 refactor code to make it 1 liner

* feat: SET-460 replace warn -> debug logs
@CLAassistant
Copy link

CLAassistant commented Jul 30, 2024

CLA assistant check
All committers have signed the CLA.

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