Skip to content

Commit 9d15d55

Browse files
committed
Bugfix: wallet: Increment "update counter" when modifying account stuff
1 parent f28eb80 commit 9d15d55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/walletdb.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,12 @@ bool CWalletDB::ReadAccount(const std::string& strAccount, CAccount& account)
172172

173173
bool CWalletDB::WriteAccount(const std::string& strAccount, const CAccount& account)
174174
{
175-
return batch.Write(std::make_pair(std::string("acc"), strAccount), account);
175+
return WriteIC(std::make_pair(std::string("acc"), strAccount), account);
176176
}
177177

178178
bool CWalletDB::WriteAccountingEntry(const uint64_t nAccEntryNum, const CAccountingEntry& acentry)
179179
{
180-
return batch.Write(std::make_pair(std::string("acentry"), std::make_pair(acentry.strAccount, nAccEntryNum)), acentry);
180+
return WriteIC(std::make_pair(std::string("acentry"), std::make_pair(acentry.strAccount, nAccEntryNum)), acentry);
181181
}
182182

183183
bool CWalletDB::WriteAccountingEntry_Backend(const CAccountingEntry& acentry)

0 commit comments

Comments
 (0)