-
Notifications
You must be signed in to change notification settings - Fork 18
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(avalanche-types): bump up rpcchainvm protocol version to 32 #157
Conversation
ref. https://github.com/ava-labs/avalanchego/blob/v1.11.0/version/constants.go Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
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.
Looks okay assuming that the majority of the diff here is all generated code (anything in src/proto
).
crates/avalanche-types/Cargo.toml
Outdated
@@ -121,7 +121,7 @@ default = [ | |||
# "message", | |||
# "mnemonic", | |||
# "proto", | |||
# "subnet", | |||
"subnet", |
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 make this a default feature? If it should be default, we can just remove the feature flag altogether.
(don't have to do this right now, I'm just curious)
/// ref. <https://github.com/ava-labs/avalanchego/blob/v1.10.1/version/constants.go#L15-L17> | ||
pub const PROTOCOL_VERSION: u32 = 28; | ||
/// ref. <https://github.com/ava-labs/avalanchego/blob/v1.11.0/version/constants.go> | ||
pub const PROTOCOL_VERSION: u32 = 32; |
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.
Looks like there was no version 32?
https://github.com/ava-labs/avalanchego/blob/6dcd8e8adaeacb6d9e7f46654bfbd93639cbd22a/version/compatibility.json#L4
)) | ||
})?; | ||
let db = | ||
corruptabledb::Database::new_boxed(DatabaseClient::new_boxed(db_client_conn.clone())); |
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.
Something tells me that there's more boxing than necessary here...
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.
Sorry, trigger happy on the approval button.
Please address this comment:
#157 (comment)
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
ref. #155
From https://github.com/ava-labs/avalanchego/blob/v1.9.11/vms/rpcchainvm/vm_server.go
to https://github.com/ava-labs/avalanchego/blob/v1.11.1/vms/rpcchainvm/vm_server.go