-
Notifications
You must be signed in to change notification settings - Fork 741
Remove optional height indexing interface #1896
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
Conversation
@@ -18,7 +18,7 @@ jobs: | |||
with: | |||
go-version: '~1.19.12' | |||
check-latest: true | |||
- uses: bufbuild/buf-setup-action@v1.23.1 | |||
- uses: bufbuild/buf-setup-action@v1.26.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be factored out - but did this because the brew tap only includes the latest version
ERROR_HEIGHT_INDEX_INCOMPLETE = 3; | ||
ERROR_STATE_SYNC_NOT_IMPLEMENTED = 4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: requires version bump
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the flipped values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We always just bump the rpcchainvm version anyways - so no need for compatibility at the proto level.
// ErrIndexIncomplete is used to indicate that the VM is currently repairing its | ||
// index. | ||
// | ||
// TODO: Remove after v1.11.x activates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just reasoning aloud here: is this true even for the ProposerVM? I mean once we're sure that any VM will implement its height index, there won't be cases there proposerVM height index can be incomplete (following a successful initialization)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The index can still be repaired async until v1.11.x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, apart from a couple of questions.
Why this should be merged
All VMs now implement height indexing - so we can add the methods to the VM interface.
How this works
Moves methods from the
HeightIndexedChainVM
interface to the `ChainVM interface.How this was tested
CI