mirror of
https://github.com/jwinterm/myriadcoin.git
synced 2026-11-01 07:04:05 +01:00
Merge branch '0.6.0.x' into 0.6.x
Conflicts: bitcoin-qt.pro doc/README doc/README_windows.txt share/setup.nsi src/bitcoinrpc.h src/db.h src/headers.h src/init.cpp src/main.cpp src/main.h src/noui.h src/qt/bitcoin.cpp src/qt/locale/bitcoin_en.ts src/qt/walletmodel.cpp src/script.cpp src/ui_interface.h src/util.cpp
This commit is contained in:
+4
-2
@@ -839,7 +839,8 @@ Value movecmd(const Array& params, bool fHelp)
|
||||
strComment = params[4].get_str();
|
||||
|
||||
CWalletDB walletdb(pwalletMain->strWalletFile);
|
||||
walletdb.TxnBegin();
|
||||
if (!walletdb.TxnBegin())
|
||||
throw JSONRPCError(-20, "database error");
|
||||
|
||||
int64 nNow = GetAdjustedTime();
|
||||
|
||||
@@ -861,7 +862,8 @@ Value movecmd(const Array& params, bool fHelp)
|
||||
credit.strComment = strComment;
|
||||
walletdb.WriteAccountingEntry(credit);
|
||||
|
||||
walletdb.TxnCommit();
|
||||
if (!walletdb.TxnCommit())
|
||||
throw JSONRPCError(-20, "database error");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user