Author

Topic: Sparrow wallet causing local node to rescan (Read 140 times)

sr. member
Activity: 406
Merit: 896
December 12, 2023, 03:16:47 AM
#16
Nah, I set up Electrum Server and since then everything has been solid.

Yeah as we said above everything is easier with Electrum Server. Congrats man. So case solved ?
newbie
Activity: 15
Merit: 20
December 12, 2023, 02:24:21 AM
#15
Have you checked the Sparrow logs to see if they say what is triggering the rescan?

Nah, I set up Electrum Server and since then everything has been solid.
legendary
Activity: 2268
Merit: 18509
December 11, 2023, 12:21:07 PM
#14
Have you checked the Sparrow logs to see if they say what is triggering the rescan?
newbie
Activity: 15
Merit: 20
December 10, 2023, 08:05:02 AM
#13
The gap limit specifies how many unused addresses your wallet should generate and scan.

Thanks for the explanation. I increased the limit, but to be honest, given the number of mixes I've seen since entering the pool (<20) I'm not sure this will help. I think there's something else up.
newbie
Activity: 15
Merit: 20
December 10, 2023, 07:53:55 AM
#12
Oh ok, my bad. This will be much better in terms of performance. Are you running a custom node? Or a solution like Umbrel, Start9 etc?

Trying to get electrs going on Ubuntu.  Think I got it:

  2023-12-10T11:52:28.645Z INFO  electrs::index] indexing 2000 blocks: [1..2000]

Going to let it rip for a while. Thanks for your comments.
sr. member
Activity: 406
Merit: 896
December 10, 2023, 07:30:03 AM
#11

So did I...


Oh ok, my bad. This will be much better in terms of performance. Are you running a custom node? Or a solution like Umbrel, Start9 etc?
newbie
Activity: 15
Merit: 20
December 10, 2023, 07:26:44 AM
#10
Unfortunately not having a Electrum Server and connecting straight to Core can cause these issues

Going to give Electrum a shot as well.


No I meant electrum server.

So did I...
legendary
Activity: 2268
Merit: 18509
December 10, 2023, 07:18:39 AM
#9
Alright, I'll try upping the gap limit. Can you explain why that might help?
I'm not 100% sure it will help, but it's worth a shot.

The gap limit specifies how many unused addresses your wallet should generate and scan. For a post-mix wallet, since you are constantly using new addresses, this number should be very high to give the wallet plenty of unused addresses it can send your free remixes to. If the gap limit was low, then your wallet might need to be frequently add new addresses, which might explain frequent rescans.

It seems the default post-mix gap limit on the most recent versions of Sparrow is now 4,000:

https://github.com/sparrowwallet/sparrow/blob/4feb4a3a79a3bbe69178fbefa38cd530fe963240/src/main/java/com/sparrowwallet/sparrow/net/cormorant/bitcoind/BitcoindClient.java#L47C12-L47C12
Code:
private static final int POSTMIX_GAP_LIMIT = 4000;
sr. member
Activity: 406
Merit: 896
December 10, 2023, 07:15:30 AM
#8
Unfortunately not having a Electrum Server and connecting straight to Core can cause these issues

Going to give Electrum a shot as well.


No I meant electrum server. It is essentially a server that allows you to interact with the Blockchain. It sits on top of Bitcoin Core. Electrum is a wallet, like sparrow and they can both be connected to an electrum server. Sparrow can also connect directly to core. Not using an Electrum Server in between.
newbie
Activity: 15
Merit: 20
December 10, 2023, 07:11:18 AM
#7
Unfortunately not having a Electrum Server and connecting straight to Core can cause these issues

Going to give Electrum a shot as well.
newbie
Activity: 15
Merit: 20
December 10, 2023, 07:04:47 AM
#6
Try going to your post-mix account, go to the "Settings" tab, and the click "Advanced" down the bottom. Is your wallet birthday set in the past and do you have a reasonable gap limit set? For other wallets the gap limit will be 20; for post-mix it should be several hundred at least, if not more.

Alright, I'll try upping the gap limit. Can you explain why that might help?
legendary
Activity: 2268
Merit: 18509
December 10, 2023, 06:57:14 AM
#5
Would a rescan be expected behaviour?
No, it isn't, unless it was adding new addresses to your post-mix wallet. If you go to the "Addresses" tab on your post-mix wallet, you should have a huge list of dozens of unused addresses which have already been scanned and are known to be empty.

Try going to your post-mix account, go to the "Settings" tab, and the click "Advanced" down the bottom. Is your wallet birthday set in the past and do you have a reasonable gap limit set? For other wallets the gap limit will be 20; for post-mix it should be several hundred at least, if not more.
newbie
Activity: 15
Merit: 20
December 10, 2023, 06:35:40 AM
#4
Did the previous rescan definitely fully complete? It showed up all your coins and transactions? If you shut down before it was fully finished then I assume it will start again from the wallet birthday whenever you next launch Sparrow.

Other things to consider - did you close Sparrow normally and did you close Core normally? Neither of them crashed? Did you change your wallet's birthday, create a new wallet, or import any new addresses? All of these things will trigger a rescan. And you haven't moved/edited/deleted any of the Sparrow wallet files?

Have you checked the Sparrow logs to see if they show anything useful?

None of that seems to apply in my case.

OK, here's a clue possibly? I've got whirlpool running, and it started another rescan immediately after I received a new UTXO in Postmix. Come to think of it, I never had this Sparrow problem until I started using whirlpool. Would a rescan be expected behaviour?
sr. member
Activity: 406
Merit: 896
December 10, 2023, 05:30:44 AM
#3
And another possibility:

Did you change anything in the bitcoin.conf file? (Some directives may cause this issue)


All of the suggestions by o_e_l_e_o above are good suspects. Unfortunately not having a Electrum Server and connecting straight to Core can cause these issues
legendary
Activity: 2268
Merit: 18509
December 10, 2023, 05:23:42 AM
#2
Did the previous rescan definitely fully complete? It showed up all your coins and transactions? If you shut down before it was fully finished then I assume it will start again from the wallet birthday whenever you next launch Sparrow.

Other things to consider - did you close Sparrow normally and did you close Core normally? Neither of them crashed? Did you change your wallet's birthday, create a new wallet, or import any new addresses? All of these things will trigger a rescan. And you haven't moved/edited/deleted any of the Sparrow wallet files?

Have you checked the Sparrow logs to see if they show anything useful?
newbie
Activity: 15
Merit: 20
December 09, 2023, 11:41:19 PM
#1
Just waited for a rescan to complete, shut down Sparrow, then restarted it. This immediately shows up in the node logs:

2023-12-10T03:26:31Z [cormorant] RescanFromTime: Rescanning last 9066 blocks
2023-12-10T03:26:31Z [cormorant] Rescan started from block 0000000000000000000235fa86c66bf0ba443c3c648248580b48b1473a21af67... (slow variant inspecting all blocks)

What is triggering these rescans? It takes at least an hour to rescan on my node which uses an HDD. It doesn't happen every time I start Sparrow.
Jump to: