#4114 don't call error() from GetSpentIndex()
This commit is contained in:
parent
0512e9eb00
commit
210c46c21d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue