Whitespace.

This commit is contained in:
JoelKatz
2012-06-08 04:34:14 -07:00
parent 95e52d5740
commit 03d90e4f56

View File

@@ -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;
} }