mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Disable transaction saving for now
This commit is contained in:
@@ -212,6 +212,9 @@ void Transaction::saveTransaction(Transaction::pointer txn)
|
||||
|
||||
bool Transaction::save() const
|
||||
{ // This code needs to be fixed to support new-style transactions - FIXME
|
||||
#if 0
|
||||
// Identify minimums fields to write for now.
|
||||
// Also maybe write effected accounts for use later.
|
||||
if ((mStatus == INVALID) || (mStatus == REMOVED)) return false;
|
||||
|
||||
std::string sql = "INSERT INTO Transactions "
|
||||
@@ -251,6 +254,8 @@ bool Transaction::save() const
|
||||
ScopedLock sl(theApp->getTxnDB()->getDBLock());
|
||||
Database* db = theApp->getTxnDB()->getDB();
|
||||
return db->executeSQL(sql);
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
|
||||
Transaction::pointer Transaction::transactionFromSQL(const std::string& sql)
|
||||
|
||||
@@ -255,7 +255,7 @@ TransactionEngineResult TransactionEngine::doClaim(const SerializedTransaction&
|
||||
}
|
||||
|
||||
//
|
||||
// Verify claim is authorized
|
||||
// Verify claim is authorized for public key.
|
||||
//
|
||||
|
||||
std::vector<unsigned char> vucCipher = txn.getITFieldVL(sfGenerator);
|
||||
@@ -272,6 +272,10 @@ TransactionEngineResult TransactionEngine::doClaim(const SerializedTransaction&
|
||||
return tenINVALID;
|
||||
}
|
||||
|
||||
//
|
||||
// Verify generator not already in use.
|
||||
//
|
||||
|
||||
uint160 hGeneratorID = naAccountPublic.getAccountID();
|
||||
|
||||
qry = lepNONE;
|
||||
|
||||
Reference in New Issue
Block a user