Skip to content

use BlocksStorage in mempool & optimeze validate request p2p #1339

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

Merged
merged 2 commits into from
Nov 10, 2020
Merged

use BlocksStorage in mempool & optimeze validate request p2p #1339

merged 2 commits into from
Nov 10, 2020

Conversation

sukrawidhyawan
Copy link
Contributor

Description

On Mempool Service, instead of using BlockStateStorage( storage get last blocks) is better to use BlocksStorage to get last block height only. On Validate Request P2P, reorder which one to check first based on the easiest on or operation.

Breakdown

  • Replace BlockStateStorage with BlocksStorage on mempool
  • ReOrder validate request on P2P

Reference Issue

Close #numberIssue

Step to Test (optional)

  • run multiple local nodes

Copy link
Contributor

@iltoga iltoga left a comment

Choose a reason for hiding this comment

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

lgtm

@iltoga iltoga merged commit ab8f858 into zoobc:experimental Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants