|
|
|
@ -573,7 +573,7 @@ Value movecmd(const Array& params, bool fHelp)
|
|
|
|
|
|
|
|
|
|
// Debit
|
|
|
|
|
CAccountingEntry debit;
|
|
|
|
|
debit.nOrderPos = pwalletMain->IncOrderPosNext();
|
|
|
|
|
debit.nOrderPos = pwalletMain->IncOrderPosNext(&walletdb);
|
|
|
|
|
debit.strAccount = strFrom;
|
|
|
|
|
debit.nCreditDebit = -nAmount;
|
|
|
|
|
debit.nTime = nNow;
|
|
|
|
@ -583,7 +583,7 @@ Value movecmd(const Array& params, bool fHelp)
|
|
|
|
|
|
|
|
|
|
// Credit
|
|
|
|
|
CAccountingEntry credit;
|
|
|
|
|
credit.nOrderPos = pwalletMain->IncOrderPosNext();
|
|
|
|
|
credit.nOrderPos = pwalletMain->IncOrderPosNext(&walletdb);
|
|
|
|
|
credit.strAccount = strTo;
|
|
|
|
|
credit.nCreditDebit = nAmount;
|
|
|
|
|
credit.nTime = nNow;
|
|
|
|
|