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

feat: update IS database instantly, no more dependency on DIP0020 #6394

Merged
merged 2 commits into from
Nov 17, 2024

Conversation

knst
Copy link
Collaborator

@knst knst commented Nov 16, 2024

Issue being fixed or feature implemented

Upgrade of IS database depends on activation of DIP0020. It's no more need because it is activated long time ago.

What was done?

Removed dependency of IS database upgrade on DIP0020. Also removed LOCK for ::mempool.cs which is not actually has been used inside GetTransaction during upgrade: no mempool -- no lock.

How Has This Been Tested?

Run unit and functional tests.

Breaking Changes

N/A

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone

@knst knst added this to the 22.1 milestone Nov 16, 2024
@knst knst marked this pull request as draft November 16, 2024 10:47
This fork is activated long time ago, no more possible conflicts
@UdjinM6
Copy link

UdjinM6 commented Nov 16, 2024

It's probably safe to just drop CInstantSendDb::Upgrade() completely

@knst
Copy link
Collaborator Author

knst commented Nov 16, 2024

It's probably safe to just drop CInstantSendDb::Upgrade() completely

It's easier to migrate than ask to reindex, I think. Is there are good API to tell that we need to reindex? I think it's easy only from init.cpp

@UdjinM6
Copy link

UdjinM6 commented Nov 16, 2024

Good point re potential garbage leftover but we don't have to reindex because

  1. unlike evodb isdb is a temporary one, can be dropped at any point and
  2. pre-dip0020 IS locks are irrelevant now, we can ignore them

Check ada5948 b6c8844 (made a typo in commit title 🙈)

@knst knst marked this pull request as ready for review November 16, 2024 16:06
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

utACK 89528bc

Copy link
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

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

utACK 89528bc

@PastaPastaPasta PastaPastaPasta merged commit d159abc into dashpay:develop Nov 17, 2024
35 checks passed
@knst knst deleted the upgrade-db-is branch November 17, 2024 04:16
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.

3 participants