Some extra debug help.

This commit is contained in:
JoelKatz
2012-01-18 11:44:47 -08:00
parent b2b8caf6b9
commit 88ff8767bb

View File

@@ -23,10 +23,17 @@ Transaction::Transaction(LocalAccount::pointer fromLocalAccount, const uint160&
mAccountFrom=fromLocalAccount->getAddress(); mAccountFrom=fromLocalAccount->getAddress();
mFromPubKey=fromLocalAccount->getPublicKey(); mFromPubKey=fromLocalAccount->getPublicKey();
mFromAccountSeq=fromLocalAccount->getAcctSeq(); mFromAccountSeq=fromLocalAccount->getAcctSeq();
#ifdef DEBUG
std::cerr << "Construct local Txn" << std::endl;
std::cerr << "ledger(" << ledger << "), fromseq(" << mFromAccountSeq << ")" << std::endl;
#endif
if(!mFromAccountSeq) if(!mFromAccountSeq)
{ {
#ifdef DEBUG #ifdef DEBUG
std::cerr << "Bad source account sequence" << std::endl; std::cerr << "Bad source account sequence" << std::endl;
assert(false);
#endif #endif
mStatus=INCOMPLETE; mStatus=INCOMPLETE;
} }