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: store ABCI validator updates in transient store #10175

Closed
wants to merge 2 commits into from

Conversation

fedekunze
Copy link
Collaborator

@fedekunze fedekunze commented Sep 16, 2021

Description

Closes: #XXXX

Expose an API to query ABCI validator set updates in the current block for use in IBC cross-chain validation (CCV)


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct docs: prefix in the PR title
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the documentation writing guidelines
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct docs: prefix in the PR title
  • confirmed all author checklist items have been addressed
  • confirmed that this PR only changes documentation
  • reviewed content for consistency
  • reviewed content for thoroughness
  • reviewed content for spelling and grammar
  • tested instructions (if applicable)

Comment on lines +101 to +102
// GetValidatorUpdate returns the ABCI validator power update for the current block
// by the consensus address.
Copy link
Contributor

Choose a reason for hiding this comment

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

So this is the ABCI power update for a certain block for a certain validator?

Copy link
Member

Choose a reason for hiding this comment

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

Yes though CCV just needs GetValidatorUpdates

@@ -19,6 +19,9 @@ const (
// StoreKey is the string store representation
StoreKey = ModuleName

// TStoreKey is the string transient store representation
TStoreKey = ModuleName
Copy link
Contributor

Choose a reason for hiding this comment

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

What is a transient store? Does it only exist for a block?

Copy link
Contributor

Choose a reason for hiding this comment

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

IIRC, a transient store is a store that is not persisted to disk and whose state exists block by block. Correct me if I'm wrong @cwgoes

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, that's right

Copy link
Member

@AdityaSripal AdityaSripal left a comment

Choose a reason for hiding this comment

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

We should determine our approach to making changes to SDK for CCV before deciding where to put this code.

See #10153

cc: @alexanderbez

@tac0turtle
Copy link
Member

closing this as the issue has been moved to a different repo.

@tac0turtle tac0turtle closed this Oct 14, 2021
@julienrbrt julienrbrt deleted the fedekunze/validator-updates branch October 10, 2022 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants