Skip to content
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

Improve Bitcoin Core Provider Block Retrieval Functionality #32

Merged

Conversation

aruokhai
Copy link
Contributor

@aruokhai aruokhai commented Sep 2, 2024

Objective

A new Verbosity Level of 3 was added to Bitcoin Core RPC getblock Method from V23, this allows the retrieval of the Pvev Output details of Transactions Inputs, which helps to reduce the number of calls made to Bitcoin Core.

Changes

  • Added a new method call getNetworkInfo, which offers the dynamic retrieval of bitcoincore version .
  • Added Logic to ensure that Verbosity Level 3 is utilised when Bitcoin core version number >= 23.

Scope Of Change

The scope is quite concerned with Bitcoin Core Provider and it is a critical change because it affects the speed of block retrieval from bitcoin core.

@aruokhai aruokhai changed the title Improve Bitcoin Core Provider Block Fetching Functionality Improve Bitcoin Core Provider Block Retrieval Functionality Sep 2, 2024
src/block-data-providers/bitcoin-core/provider.ts Outdated Show resolved Hide resolved
src/block-data-providers/bitcoin-core/provider.ts Outdated Show resolved Hide resolved
src/block-data-providers/bitcoin-core/provider.ts Outdated Show resolved Hide resolved
@aruokhai aruokhai force-pushed the task/bitcoincore-verbosity branch 2 times, most recently from 99a2368 to 0fad37b Compare September 3, 2024 12:11
@theanmolsharma theanmolsharma merged commit c2cd174 into Bitshala-Incubator:main Sep 3, 2024
4 checks passed
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