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

Build Block Blooms Database (2.2.0) #1384

Merged
merged 14 commits into from Dec 23, 2020
Merged

Conversation

ajlopezrsk
Copy link
Contributor

@ajlopezrsk ajlopezrsk commented Dec 3, 2020

fit: 2.2-rc

Description

Using a new configuration option, the build and save of block blooms data could be executed within the normal operation of the node. This data is used to retrieve log information efficiently.

Motivation and Context

Usually, this block blooms information is used only in nodes that has JSON RPC open, and log query operation enabled. And with the first query, the data is build and saved. But even with this feature, the operation could take many minutes and resources from the node.

So, this new code allow the build of the same data along the blockchain node normal processing, ie, during long synchronization or normal synchronization. To do this, a new internal service was added, and it is activated by configuration (the default value is not activated),

How Has This Been Tested?

It has code tests, and also was tested running a long sync against testnet network,

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • Tests for the changes have been added (for bug fixes / features)
  • Requires Activation Code (Hard Fork)
  • Other information:

@aeidelman aeidelman added this to the Papyrus v2.2.0 milestone Dec 10, 2020
Copy link
Contributor

@patogallaiovlabs patogallaiovlabs left a comment

Choose a reason for hiding this comment

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

You missed these commits:

@ajlopezrsk
Copy link
Contributor Author

pipeline:run

@ajlopezrsk
Copy link
Contributor Author

Done

You missed these commits:

@ajlopezrsk
Copy link
Contributor Author

pipeline: run

@ajlopezrsk
Copy link
Contributor Author

You missed these commits:

Already done

@sonarcloud
Copy link

sonarcloud bot commented Dec 23, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

87.2% 87.2% Coverage
0.0% 0.0% Duplication

warning The version of Java (1.8.0_275) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 11.
Read more here

Copy link
Contributor

@patogallaiovlabs patogallaiovlabs left a comment

Choose a reason for hiding this comment

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

LGTM

@ajlopezrsk
Copy link
Contributor Author

pipeline: run

@ajlopezrsk ajlopezrsk merged commit 911e9f8 into PAPYRUS-2.2.0-rc Dec 23, 2020
@delete-merged-branch delete-merged-branch bot deleted the buildblooms-2.2.0 branch December 23, 2020 18:29
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.

None yet

4 participants