Skip to content

Add proposal app hash + step hashes#47

Open
ahdzib-maya wants to merge 1 commit intoQuokkaStake:mainfrom
ahdzib-maya:feat/add-hashes
Open

Add proposal app hash + step hashes#47
ahdzib-maya wants to merge 1 commit intoQuokkaStake:mainfrom
ahdzib-maya:feat/add-hashes

Conversation

@ahdzib-maya
Copy link

Kind of addresses #42

Did this change to debug a consensus failure on Maya Protocol mainnet and it worked well, so I thought of opening the PR.

@freak12techno
Copy link
Collaborator

Hi, thanks for your contribution, sorry for taking that much time to respond!

I was thinking about the following: there are basically 3 options a validator can vote: nil (not voting), zeroes (disagreeing with the proposer) and non-zeroes (agreeing with the proposer), and they are already represented by emojis, so I wonder whether it makes sense to also display actual votes? In my opinion, this makes the interface extra complex, which might be not what people want.
Maybe adding a toggle or something like that (like, when you press the button and it toggles actual votes displaying) would be better, what do you think?

Also would for sure be helpful to add it to AllRoundsTable, to see votes per each round.

// Fetch app_hash from the proposed block
appHash, err := a.Aggregator.GetAppHash()
if err != nil {
a.Logger.Debug().Err(err).Msg("Could not get app hash from proposed block")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we also add SetState with error to display that there was an error fetching data, the same way it's done for SetTendermintResponse?


return fmt.Sprintf(
" %s %s %s %s%% %s ",
" %s%s %s%s %s %s%% %s ",
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's maybe add another space between the emoji and the vote itself? otherwise it looks a bit ugly
image

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