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

[master] Purge MPT roots for normal node #2600

Merged
merged 1 commit into from
Jun 14, 2021

Conversation

KaustubhShamshery
Copy link
Contributor

@KaustubhShamshery KaustubhShamshery commented Jun 13, 2021

Description

Add purging of historical data for normal node (non-lookup)

Backward Compatibility

  • This is not a breaking change
  • This is a breaking change

Review Suggestion

Status

Implementation

  • ready for review

Integration Test (Core Team)

  • local machine test
  • small-scale cloud test

@github-actions github-actions bot changed the title Purge for normal node [master] Purge for normal node Jun 13, 2021
@github-actions github-actions bot added this to PRs in development in Core Jun 13, 2021
Core automation moved this from PRs in development to PRs needing review Jun 13, 2021
@KaustubhShamshery KaustubhShamshery self-assigned this Jun 13, 2021
@KaustubhShamshery KaustubhShamshery added the Ready Ready for review label Jun 13, 2021
@@ -236,6 +236,7 @@ Zilliqa::Zilliqa(const PairOfKey& key, const Peer& peer, SyncType syncType,
if (!AccountStore::GetInstance().RefreshDB()) {
LOG_GENERAL(WARNING, "AccountStore::RefreshDB failed");
}
AccountStore::GetInstance().PurgeUnnecessary();
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this function meant to be called for seedpubs or seedprvs or seednodes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, got your point, making changes

Core automation moved this from PRs needing review to PRs approved - ready to merge! Jun 14, 2021
@KaustubhShamshery KaustubhShamshery changed the title [master] Purge for normal node [master] Purge MPT roots for normal node Jun 14, 2021
@sandipbhoir sandipbhoir merged commit 6454c6c into master Jun 14, 2021
Core automation moved this from PRs approved - ready to merge! to PRs done (merged) Jun 14, 2021
@sandipbhoir sandipbhoir deleted the feauture/MPT/purge_normal_node branch June 14, 2021 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready Ready for review
Projects
Core
  
PRs done (merged)
Development

Successfully merging this pull request may close these issues.

None yet

3 participants