rpc: include spent info if spentindex enabled with getrawtransaction verbose

This commit is contained in:
Braydon Fuller
2016-04-12 12:31:21 -04:00
committed by Braydon Fuller
parent e3d9207e5a
commit b752fbe09e
3 changed files with 19 additions and 3 deletions

View File

@@ -1458,7 +1458,7 @@ bool GetTimestampIndex(const unsigned int &high, const unsigned int &low, std::v
bool GetSpentIndex(CSpentIndexKey &key, CSpentIndexValue &value)
{
if (!fSpentIndex)
return error("spent index not enabled");
return false;
if (!pblocktree->ReadSpentIndex(key, value))
return error("unable to get spent info");