aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-10-19 15:49:45 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2017-10-19 16:01:45 +0100
commit7a5f9303a9ed8e9efa25f8264ed491644e451645 (patch)
tree57c9ef85d3de2d44742cc43ca501fe281dfe4e74 /src/validation.cpp
parent13f53b750dc09cb59192b2aa4ac8e499ee36e1ca (diff)
Avoid slow transaction search with txindex enabled
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 1a1c1941ef..d19521bd3c 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -939,6 +939,9 @@ bool GetTransaction(const uint256 &hash, CTransactionRef &txOut, const Consensus
return error("%s: txid mismatch", __func__);
return true;
}
+
+ // transaction not found in index, nothing more can be done
+ return false;
}
if (fAllowSlow) { // use coin database to locate block that contains transaction, and scan it