Skip to content

393 mempool rollback step backup mempool transactions into badgerdb #406

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 23 commits into from
Nov 8, 2019

Conversation

astaphobia
Copy link
Contributor

@astaphobia astaphobia commented Nov 5, 2019

Description

  1. Rollback mempool as well while got rollback.
  2. Backup and store into badgerdb the afftected mempool transactions

Mempool need to have BlockQuery to get current LastBlock.Height that should own by mempool transactions which want to backup to badgerdb. In my side i have to use blockQuery instead of BlockService.GetLastBlock() because that can got error cycle import while BlockService have MempoolService as well

Reference Issue

Close #393 step 1
Depend on zoobc/zoobc-schema#72

Step to Test (optional)

  • dep ensure -vendor-only -v
  • go test ./... -count=1

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.

💯

@astaphobia astaphobia added this to the Milestone 9 milestone Nov 6, 2019
@andy-shi88 andy-shi88 merged commit 95f1a28 into develop Nov 8, 2019
@andy-shi88 andy-shi88 deleted the 393-mempool-rollback branch November 8, 2019 01:05
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.

Tech: Mempool Rollback
4 participants