Skip to content

fix(dashmate): testnet node fails to setup with funding key#838

Closed
pshenmic wants to merge 3 commits into
v0.24-devfrom
fix/dashmate-funding-key
Closed

fix(dashmate): testnet node fails to setup with funding key#838
pshenmic wants to merge 3 commits into
v0.24-devfrom
fix/dashmate-funding-key

Conversation

@pshenmic

@pshenmic pshenmic commented Mar 21, 2023

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

Testnet node setup fails when funding key is passed to the testnet node

#817

What was done?

Empty masternode operator private key while register node

How Has This Been Tested?

Locally

Breaking Changes

No

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@pshenmic pshenmic added this to the v0.23.x milestone Mar 21, 2023
@pshenmic
pshenmic changed the base branch from v0.24-dev to master March 21, 2023 13:13
*/
async function importPrivateKey(coreService, privateKey) {
return coreService.getRpcClient().importPrivKey(privateKey, { wallet: 'main' });
async function importPrivateKey(coreService, privateKey, walletName = null) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep main default value?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about that. We only invoke importPrivateKey() inside registerMasternodeTask, which is currently only used during setup local phase. ConfigureCoreTask are creating wallet separately before executing registerMasternodeTask, and its obvious that we should use main. But when registerMasternodeTask are invoked via command, it does not have any predefined created wallets, so it will fail with error that it cannot find such wallet.

Should we move createwallet rpc command inside registerMastenodeTask?

@pshenmic
pshenmic changed the base branch from master to v0.24-dev April 18, 2023 19:22
@shumkov

shumkov commented Apr 19, 2023

Copy link
Copy Markdown
Collaborator

The setup command doesn't accept the funding key and any other options anymore #794

@pshenmic pshenmic closed this Apr 19, 2023
@pshenmic
pshenmic deleted the fix/dashmate-funding-key branch April 19, 2023 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants