mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
Whitespace.
This commit is contained in:
@@ -20,11 +20,11 @@ TransactionMaster::TransactionMaster() : mCache(CACHED_TRANSACTION_NUM, CACHED_T
|
|||||||
|
|
||||||
Transaction::pointer TransactionMaster::fetch(const uint256& txnID, bool checkDisk)
|
Transaction::pointer TransactionMaster::fetch(const uint256& txnID, bool checkDisk)
|
||||||
{
|
{
|
||||||
Transaction::pointer txn=mCache.fetch(txnID);
|
Transaction::pointer txn = mCache.fetch(txnID);
|
||||||
if(!checkDisk || txn) return txn;
|
if( !checkDisk || txn) return txn;
|
||||||
|
|
||||||
txn=Transaction::load(txnID);
|
txn = Transaction::load(txnID);
|
||||||
if(!txn) return txn;
|
if (!txn) return txn;
|
||||||
|
|
||||||
mCache.canonicalize(txnID, txn);
|
mCache.canonicalize(txnID, txn);
|
||||||
return txn;
|
return txn;
|
||||||
@@ -32,10 +32,10 @@ Transaction::pointer TransactionMaster::fetch(const uint256& txnID, bool checkDi
|
|||||||
|
|
||||||
bool TransactionMaster::canonicalize(Transaction::pointer& txn, bool may_be_new)
|
bool TransactionMaster::canonicalize(Transaction::pointer& txn, bool may_be_new)
|
||||||
{
|
{
|
||||||
uint256 tid=txn->getID();
|
uint256 tid = txn->getID();
|
||||||
if(!tid) return false;
|
if (!tid) return false;
|
||||||
if(mCache.canonicalize(tid, txn)) return true;
|
if (mCache.canonicalize(tid, txn)) return true;
|
||||||
if(may_be_new)
|
if (may_be_new) // FIXME: Don't dispatch to main pool
|
||||||
theApp->getIOService().post(boost::bind(&Transaction::saveTransaction, txn));
|
theApp->getIOService().post(boost::bind(&Transaction::saveTransaction, txn));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user