526@@ -527,7 +527,7 @@ static LoadResult LoadRecords(CWallet* pwallet, DatabaseBatch& batch, const std:
527 return LoadRecords(pwallet, batch, key, prefix, load_func);
528 }
529
530-static DBErrors LoadLegacyWalletRecords(CWallet* pwallet, DatabaseBatch& batch, int last_client) EXCLUSIVE_LOCKS_REQUIRED(pwallet->cs_wallet)
531+static DBErrors LoadLegacyWalletRecords(CWallet* pwallet, DatabaseBatch& batch, WalletBatch& w_batch, int last_client) EXCLUSIVE_LOCKS_REQUIRED(pwallet->cs_wallet)
Non-blocking because it is the only way now but it is kinda unnatural to provide batch
and w_batch
when w_batch
contains the batch
object.
I’ve made m_batch
public so that we can just pass the WalletBatch
but still use the underlying batch object. However I’m not sure if that’s something we want to do in the long term, but I think it should be okay.
I’ve made m_batch
public so that we can just pass the WalletBatch
but still use the underlying batch object. However I’m not sure if that’s something we want to do in the long term, but I think it should be okay.
Yeah.. I’m not happy reading all the the batch.m_batch
usages neither but np.