Bitcoin Client Software and Version Number: Bitcoin Core 24.0.0
Operating System: Linux (Ubuntu 22.04)
System Hardware Specs: 8 threads, 16GB of memory
Description of Problem:
I am having a strange error when I try to load a particular watch-only wallet that contains about 4.5 thousand transactions.
The debug log is not printing anything useful either, it's just showing me the wallet version. What is the daemon actually doing?
bitcoin-cli loadwallet ... seems to be hanging for no explicable reason.
Any Related Addresses: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa (the sole address in a watch-only wallet)
Last Log Files from the Bitcoin Client:
2023-06-22T10:02:03Z Using SQLite Version 3.38.5
2023-06-22T10:02:03Z Using wallet /home/zenulabidin/.bitcoin/wallets/api2
2023-06-22T10:02:09Z init message: Loading wallet…
2023-06-22T10:02:09Z [api2] Wallet file version = 10500, last client version = 240000
But if I understand correctly, it's supposed to be followed by something like this:
2023-06-22T10:13:36Z [api] Setting spkMan to active: id = 3c2cb6cdb938eac92356d10376de55b52292b0ac1e39dc85a2ba73357688db8e, type = legacy, internal = false
2023-06-22T10:13:36Z [api] Setting spkMan to active: id = 2e878a2ea9ed364f0c973363e86d59e4e382c0d89b025e167b31c3bbfedbe8bb, type = p2sh-segwit, internal = false
2023-06-22T10:13:36Z [api] Setting spkMan to active: id = 8ef7b08f1c5f86526a804b6df490694ba52b1494ec30363005e169405b7db99c, type = bech32, internal = false
2023-06-22T10:13:36Z [api] Setting spkMan to active: id = cad55039069308e856d62db5256d18564aae476f85adf4cc493793b306af70a8, type = bech32m, internal = false
2023-06-22T10:13:36Z [api] Setting spkMan to active: id = b521d155517870891a6c109616585c04328dbc1ae36152da533c97c5211c4c1a, type = legacy, internal = true
2023-06-22T10:13:36Z [api] Setting spkMan to active: id = b94c9d701b6ca8b2ae87981e1cb080944fd4839ed85f4fc28701c8ca0ed21553, type = p2sh-segwit, internal = true
2023-06-22T10:13:36Z [api] Setting spkMan to active: id = edb5fcc5e6f9b327aae1f1c91d3d0bb432d300dfec19f0974f32cced0fc34cdc, type = bech32, internal = true
2023-06-22T10:13:36Z [api] Setting spkMan to active: id = 41cfbc5134852e4f17ea5106de5c3cbabd2a4bbdbd1e6ff0a0443ae516252898, type = bech32m, internal = true
2023-06-22T10:13:36Z [api] Keys: 8 plaintext, 0 encrypted, 0 w/ metadata, 8 total. Unknown wallet records: 0
2023-06-22T10:13:38Z [api] Wallet completed loading in 2676ms
2023-06-22T10:13:48Z New outbound peer connected: version: 70016, blocks=795417, peer=187 (outbound-full-relay)
2023-06-22T10:13:48Z 218 addresses found from DNS seeds
2023-06-22T10:13:48Z P2P peers available. Finished DNS seeding.
2023-06-22T10:13:48Z dnsseed thread exit
2023-06-22T10:13:54Z init message: Rescanning…
2023-06-22T10:13:54Z [api] Rescanning last 2 blocks (from block 795415)...
2023-06-22T10:13:59Z [api] Rescan started from block 000000000000000000055bac7fd78bc5b181e893e73703c2d6aa77deb0d935f0...
2023-06-22T10:14:08Z Socks5() connect to t2b7l2kulkxh5lh64wzt67vo3knhjzhrcs7lqoohl2f3pgdbh6vowfid.onion:8333 failed: host unreachable
2023-06-22T10:14:59Z [api] Scanning current mempool transactions.
2023-06-22T10:15:03Z [api] Rescan completed in 63372ms
2023-06-22T10:15:08Z [api] setKeyPool.size() = 8000
2023-06-22T10:15:08Z [api] mapWallet.size() = 0
2023-06-22T10:15:08Z [api] m_address_book.size() = 0
Here is my bitcoin.conf:
wallet=1
daemon=1
peerbloomfilters=1
txindex=1
server=1
blocknotify=bash ~/.bitcoin/blocknotify %s
mempoolfullrbf=1
rpckeepalive=0 # This is only here because I saw this tip in a Github issue somewhere.
# Try to lower excessive Bitcoin Core memory usage
dbcache=64
Interestingly, if I shut down the daemon, the messages appear in the log before saying "rescan interrupted" just before the shutdown completes.