Skip to content

Conversation

@dcousens
Copy link
Contributor

I'm happy to be wrong, but I can't see why this is necessary, especially when the mempool locks are all in place in subsequent functions?

@dcousens dcousens changed the title remove unnecessary LOCK(cs_main) remove unnecessary LOCK(cs_main) in getrawpmempool Jun 23, 2016
@laanwj
Copy link
Member

laanwj commented Jun 23, 2016

I think you are right.
utACK 27f8126

@paveljanik
Copy link
Contributor

utACK 27f8126

@pstratem
Copy link
Contributor

utACK 27f8126

@fanquake
Copy link
Member

utACK 27f8126

@sipa
Copy link
Member

sipa commented Jun 24, 2016

utACK 27f8126

@laanwj laanwj merged commit 27f8126 into bitcoin:master Jun 25, 2016
laanwj added a commit that referenced this pull request Jun 25, 2016
27f8126 remove unnecessary LOCK(cs_main) (Daniel Cousens)
@dcousens dcousens deleted the patch-1 branch June 26, 2016 10:09
zkbot added a commit to zcash/zcash that referenced this pull request Apr 1, 2021
Bitcoin 0.13 locking PRs

These are locking changes from upstream (bitcoin core) release 0.13, oldest to newest (when they were merged to the master branch).
- bitcoin/bitcoin#7846
- bitcoin/bitcoin#7913
- bitcoin/bitcoin#8016
  - second commit only; first commit, test changes, are already done
- bitcoin/bitcoin#7942

This PR does not include:
 - bitcoin/bitcoin#8244 bitcoin/bitcoin@27f8126
   -  zcash requires locking `cs_main` in this instance (`getrawmempool()` calls `mempoolToJSON()`, which calls `chainActive.Height()`).
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants