OTLedger * OTLedger::GenerateLedger(const OTIdentifier & theUserID, const OTIdentifier & theAcctID, // AcctID should be "OwnerID" since could be acct OR Nym (with nymbox) const OTIdentifier & theServerID, const ledgerType theType, bool bCreateFile/*=false*/) { OTLedger * pLedger = new OTLedger(theUserID, theAcctID, theServerID); OT_ASSERT(NULL != pLedger); pLedger->GenerateLedger(theAcctID, theServerID, theType, bCreateFile); pLedger->SetUserID(theUserID); return pLedger; }
OTLedger * OTLedger::GenerateLedger(const OTIdentifier & theUserID, const OTIdentifier & theAcctID, const OTIdentifier & theServerID, const ledgerType theType, bool bCreateFile/*=false*/) { OTLedger * pLedger = new OTLedger(theUserID, theAcctID, theServerID); OT_ASSERT(NULL != pLedger); pLedger->GenerateLedger(theAcctID, theServerID, theType, bCreateFile); pLedger->SetUserID(theUserID); return pLedger; }