-
Notifications
You must be signed in to change notification settings - Fork 669
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
Refactor chains/manager
#2665
Refactor chains/manager
#2665
Conversation
e94ac03
to
8287633
Compare
chains/manager
into platformvm
chains/manager
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 think the alias changes could be pulled out into a separate PR and would be an easy win.
ProfileDir string | ||
LogFactory logging.Factory | ||
NodeConfig interface{} | ||
Aliaser ids.Aliaser |
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.
Aliaser ids.Aliaser | |
ChainAliaser ids.Aliaser |
lock sync.RWMutex | ||
ipcs *ipcs.ChainIPCs | ||
log logging.Logger | ||
aliaser ids.Aliaser |
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.
aliaser ids.Aliaser | |
chainAliaser ids.AliaserReader |
api/info/service.go
Outdated
@@ -40,7 +40,8 @@ type Info struct { | |||
validators validators.Manager | |||
myIP ips.DynamicIPPort | |||
networking network.Network | |||
chainManager chains.Manager | |||
aliaser ids.Aliaser |
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.
aliaser ids.Aliaser | |
chainAliaser ids.AliaserReader |
@@ -85,6 +84,7 @@ var ( | |||
// Service defines the API calls that can be made to the platform chain | |||
type Service struct { | |||
vm *VM | |||
aliaser ids.Aliaser |
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.
aliaser ids.Aliaser | |
chainAliaser ids.AliaserReader |
//TODO error | ||
_ = e.ChainCreator.CreateChain( | ||
txID, | ||
tx.SubnetID, | ||
tx.GenesisData, | ||
tx.VMID, | ||
tx.FxIDs, | ||
) |
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'm not sure we want to error here. Currently we just log an error if creating a chain fails - rather than having the node FATAL... Bubbling the error here would cause the node to FATAL.
8287633
to
4d84fa4
Compare
This PR has become stale because it has been open for 30 days with no activity. Adding the |
Why this should be merged
How this works
How this was tested