-
Notifications
You must be signed in to change notification settings - Fork 7
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
chore: account init to update node admin key #1373
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Jeffrey Tang <[email protected]>
Signed-off-by: Jeffrey Tang <[email protected]> # Conflicts: # src/commands/account.ts
E2E Test Report 17 files 126 suites 1h 28m 27s ⏱️ Results for commit 1a48a93. ♻️ This comment has been updated with latest results. |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1373 +/- ##
==========================================
+ Coverage 82.47% 82.52% +0.04%
==========================================
Files 130 130
Lines 23642 23721 +79
Branches 2366 1493 -873
==========================================
+ Hits 19498 19575 +77
- Misses 3904 4133 +229
+ Partials 240 13 -227
|
src/commands/account.ts
Outdated
const newPrivateKey = PrivateKey.generateED25519(); | ||
const genesisAccountId = AccountId.fromString(constants.FREEZE_ADMIN_ACCOUNT); | ||
// update genesis account key | ||
await self.accountManager.updateAccountKeys( |
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.
this is not what was meant. We need to update the Node Admin Keys. I believe the only way to do this is via the NodeUpdateTransaction:
solo/src/commands/node/tasks.ts
Line 1438 in 929fdaa
self.logger.info(`config.tlsPublicKey: ${config.tlsPublicKey}`); |
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.
Updated
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.
Need to use NodeUpdateTransaction to update each of the node's admin keys.
Signed-off-by: Jeffrey Tang <[email protected]>
Signed-off-by: Jeffrey Tang <[email protected]>
Signed-off-by: Jeffrey Tang <[email protected]>
…node-adminkey Signed-off-by: Jeffrey Tang <[email protected]> # Conflicts: # src/commands/account.ts # src/commands/node/tasks.ts
Signed-off-by: Jeffrey Tang <[email protected]>
Signed-off-by: Jeffrey Tang <[email protected]>
Description
This pull request changes the following:
Related Issues