Avoid slow transaction search with txindex enabled
This commit is contained in:
1 parent
13f53b750d
commit
7a5f9303a9
1 file changed
+3
@@ -939,6 +939,9 @@ bool GetTransaction(const uint256 &hash, CTransactionRef &txOut, const Consensus
|
|||||||
return error("%s: txid mismatch", __func__);
|
return error("%s: txid mismatch", __func__);
|
||||||
return true;
|
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
|
if (fAllowSlow) { // use coin database to locate block that contains transaction, and scan it
|
||||||
|
|||||||
Reference in new issue
Block a user