#4114 don't call error() from GetSpentIndex()

This commit is contained in:
Larry Ruane 2019-08-24 19:05:10 -06:00
parent 0512e9eb00
commit 210c46c21d
1 changed files with 1 additions and 1 deletions

View File

@ -1633,7 +1633,7 @@ bool GetSpentIndex(CSpentIndexKey &key, CSpentIndexValue &value)
{
AssertLockHeld(cs_main);
if (!fSpentIndex)
return error("spent index not enabled");
return false;
if (mempool.getSpentIndex(key, value))
return true;
return pblocktree->ReadSpentIndex(key, value);