Skip to content

Conversation

@knst
Copy link
Collaborator

@knst knst commented Jan 30, 2023

Issue being fixed or feature implemented

Previously noticed, that GetTransaction is called deep inside governance objects and it is true indeed.
But so far it is used nullptr as a mempol object instead any real mempool in GetTransaction and no usage of a global mempool or any other mempool, this locks are useless.

This changes are important for mempool globalization.

What was done?

Removed LOCK for ::mempool.cs in governance's code

How Has This Been Tested?

Run unit/functional tests. Also done deglobalization of mempool to validate that governance indeed doesn't use global mempool implicit in #5169

Breaking Changes

No breaking changes

Checklist:

  • I have performed a self-review of my own code
  • I have assigned this pull request to a milestone

GetTransaction is indeed called deep inside but the nullptr is pass
as a pointer to mempool. There is no used global mempool and GetTransaction
do not use any other mempool if argument with pointer to mempol is empty.
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 for squash merge

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.

Nice catch! 👍

utACK

@PastaPastaPasta PastaPastaPasta merged commit 967d413 into dashpay:develop Jan 31, 2023
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