-
Notifications
You must be signed in to change notification settings - Fork 675
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
ACP-77: Add ConversionID to state #3481
Conversation
// Set the new Subnet manager in the database | ||
e.State.SetSubnetManager(tx.Subnet, tx.ChainID, tx.Address) | ||
// Track the subnet conversion in the database | ||
// TODO: Populate the conversionID |
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.
Any reason to not calculate the conversion ID here now? Seems somewhat trivial since all the data to calculate is available.
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 SubnetConversionTx
changes are in #3397. So those are already pulled out into a separate PR.
@@ -1226,8 +1229,10 @@ platform.getSubnet({ | |||
a permissioned subnet. If the Subnet is a PoS Subnet, then `threshold` will be `0` and `controlKeys` | |||
will be empty. | |||
- changes can not be made into the subnet until `locktime` is in the past. | |||
- `subnetTransformationTxID` is the ID of the transaction that changed the subnet into a elastic one, | |||
for when this change was performed. | |||
- `subnetTransformationTxID` is the ID of the transaction that changed the subnet into an elastic one, if it exists. |
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.
- `subnetTransformationTxID` is the ID of the transaction that changed the subnet into an elastic one, if it exists. | |
- `subnetTransformationTxID` is the ID of the transaction that changed the subnet into an L1, if it exists. |
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.
realized this is probably only referencing the tx hash of TransformSubnetTx
can this field not be removed from the response since it has been deprecated?
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.
I don't think it makes sense to remove this as part of this PR.
Why this should be merged
Factored out of #3388.
How this works
Adds the
ConversionID
to theChainID
andAddress
pair stored on disk after converting a subnet to an L1.How this was tested