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

Feature: broadcast vote power #4683

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Feature: broadcast vote power #4683

merged 1 commit into from
Jul 23, 2024

Conversation

Frozen
Copy link
Contributor

@Frozen Frozen commented Jun 4, 2024

Feature: broadcast vote power

@Frozen Frozen self-assigned this Jun 4, 2024
@Frozen Frozen force-pushed the feature/broadcast-vote-power branch from d58a280 to 2939bdb Compare June 5, 2024 03:31
@Frozen Frozen force-pushed the feature/broadcast-vote-power branch from eea35e8 to e2043ae Compare June 8, 2024 19:18
@Frozen Frozen marked this pull request as ready for review June 8, 2024 19:18
p2p.ConstructMessage(msgToSend),
); err != nil {
consensus.getLogger().Err(err).
Msg("[LastSignPower] could not send out the ViewChange message")
Copy link
Contributor

Choose a reason for hiding this comment

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

please update the log message here

return nil, nil, true, errors.WithStack(errWrongShardID)
}
senderKey = maybeSP.SenderPubkey
consensus.SetLastKnownSignPower(maybeSP.Commit)
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to capture all 3 VP :
Prepare: getOrZero(prep),
Commit: getOrZero(comm),
Change: getOrZero(view),

during an outage, most likely we won't even hit the commit phase, and during that time only view change VP will be seen.

@sophoah
Copy link
Contributor

sophoah commented Jul 3, 2024

@Frozen were you able to test that PR in localnet and confirm the VP and api calls are working fine ? hmy_getLastSigningPower at the current state is only working when this is call on the leader, now this one should work on all nodes.

@Frozen
Copy link
Contributor Author

Frozen commented Jul 7, 2024

@Frozen were you able to test that PR in localnet and confirm the VP and api calls are working fine ? hmy_getLastSigningPower at the current state is only working when this is call on the leader, now this one should work on all nodes.

i have hmy_getLastSigningPower and hmy_getLastSigningPower2 methods to compare results, and i'm waiting for watchdog localnet integration to confirm that everything works as expected.

@mur-me
Copy link
Collaborator

mur-me commented Jul 9, 2024

@Frozen, please confirm that you are unblocked and have watchdog locally

@GheisMohammadi GheisMohammadi self-requested a review July 22, 2024 20:54
@GheisMohammadi
Copy link
Contributor

Looks good to me. We need to test the LastSignPowerRequest in the localnet. Other than that, everything is good. Thanks!

@ONECasey ONECasey merged commit 0e74201 into dev Jul 23, 2024
4 checks passed
Frozen added a commit that referenced this pull request Jul 23, 2024
ONECasey pushed a commit that referenced this pull request Jul 25, 2024
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.

None yet

5 participants