Skip to content

Commit 0f269bc

Browse files
committed
walletdb: Load Txs last
Need to load txs last so that IsMine works.
1 parent 5cc32ee commit 0f269bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wallet/walletdb.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,14 +1163,14 @@ DBErrors WalletBatch::LoadWallet(CWallet* pwallet)
11631163
// Load address book
11641164
result = std::max(LoadAddressBookRecords(pwallet, *m_batch), result);
11651165

1166-
// Load tx records
1167-
result = std::max(LoadTxRecords(pwallet, *m_batch, any_unordered), result);
1168-
11691166
// Load SPKMs
11701167
result = std::max(LoadActiveSPKMs(pwallet, *m_batch), result);
11711168

11721169
// Load decryption keys
11731170
result = std::max(LoadDecryptionKeys(pwallet, *m_batch), result);
1171+
1172+
// Load tx records
1173+
result = std::max(LoadTxRecords(pwallet, *m_batch, any_unordered), result);
11741174
} catch (std::runtime_error& e) {
11751175
// Exceptions that can be ignored or treated as non-critical are handled by the individual loading functions.
11761176
// Any uncaught exceptions will be caught here and treated as critical.

0 commit comments

Comments
 (0)