Prevent RPC 'move' from deadlocking

It seemed to create two CWalletDB objects that both grab the
database lock.
This commit is contained in:
Pieter Wuille
2012-11-13 23:52:37 +01:00
parent eb49457ff2
commit 4291e8feab
3 changed files with 10 additions and 6 deletions

View File

@@ -149,7 +149,7 @@ public:
/** Increment the next transaction order id
@return next transaction order id
*/
int64 IncOrderPosNext();
int64 IncOrderPosNext(CWalletDB *pwalletdb = NULL);
typedef std::pair<CWalletTx*, CAccountingEntry*> TxPair;
typedef std::multimap<int64, TxPair > TxItems;