Missing startIterRows.

This commit is contained in:
JoelKatz
2011-12-30 18:48:29 -08:00
parent 983f4560f3
commit 5a38a71382
4 changed files with 7 additions and 7 deletions

View File

@@ -23,8 +23,8 @@ CKey::pointer PubKeyCache::locate(const uint160& id)
{ // is it in the database
ScopedLock sl(theApp->getTxnDB()->getDBLock());
Database* db=theApp->getTxnDB()->getDB();
if(!db->executeSQL(sql.c_str())) return CKey::pointer();
if(!db->getNextRow()) return CKey::pointer();
if(!db->executeSQL(sql.c_str()) || !db->startIterRows() || !db->getNextRow())
return CKey::pointer();
pkSize=db->getBinary("PubKey", &(data.front()), data.size());
db->endIterRows();
}