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

make getrawtransactions not do slow search by default. #315

Merged
merged 5 commits into from
Apr 5, 2018

Conversation

mempko
Copy link
Member

@mempko mempko commented Apr 5, 2018

Don't do the slow utxo check in getrawtransaction if a transaction is not found by default. Added a parameter to enable the slow check if the user really, really wants to (but they won't want to).

Also updated the locks to cs_main to be held for a shorter amount of time in GetTransaction and GetReferral

@@ -175,7 +175,7 @@ UniValue getrawtransaction(const JSONRPCRequest& request)
{
if (request.fHelp || request.params.size() < 1 || request.params.size() > 2)
Copy link
Member

Choose a reason for hiding this comment

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

you need to update this one

@tonypizzicato tonypizzicato merged commit 2f54e47 into master Apr 5, 2018
@tonypizzicato tonypizzicato deleted the bug/dont-slow-check-getrawtransactions branch April 5, 2018 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants