Skip to content

fix: Use getgovernanceinfo in RPC check#310

Merged
nmarley merged 1 commit into
dashpay:v0.23-devfrom
nmarley:dashd-rpc-check
Jul 4, 2022
Merged

fix: Use getgovernanceinfo in RPC check#310
nmarley merged 1 commit into
dashpay:v0.23-devfrom
nmarley:dashd-rpc-check

Conversation

@nmarley
Copy link
Copy Markdown
Contributor

@nmarley nmarley commented Jul 4, 2022

Issue being fixed or feature implemented

The getblockchaininfo call is heavy, consumes a lot of resources. Since we are only using this to check if RPC is ready, we can use something light like getgovernanceinfo instead. This saves 2-3 seconds each time it's called.

What was done?

Changed getblockchaininfo to getgovernanceinfo in dashd RPC check.

How Has This Been Tested?

I tested this by running the dashd play on a testnet masternode, once.

Breaking Changes

n/a

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

@nmarley nmarley requested review from shumkov and strophy July 4, 2022 11:36
@nmarley nmarley changed the title fix: Use getgovinfo in RPC check fix: Use getgovernanceinfo in RPC check Jul 4, 2022
Copy link
Copy Markdown
Collaborator

@shumkov shumkov left a comment

Choose a reason for hiding this comment

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

👍

@nmarley nmarley merged commit 2c2b013 into dashpay:v0.23-dev Jul 4, 2022
@nmarley nmarley deleted the dashd-rpc-check branch July 4, 2022 12:22
nmarley added a commit to nmarley/dash-network-deploy that referenced this pull request Jul 8, 2022
@nmarley nmarley mentioned this pull request Jul 8, 2022
4 tasks
nmarley added a commit that referenced this pull request Jul 11, 2022
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