I'd noticed Electrum did this before, but I didn't know what was the issue and it magically got fixed later. Now, that I'm facing this problem again, I know what probably causes it: The unconfirmed transaction(s). I just broadcasted a tx few minutes ago, from another computer, and it can't startup the wallet on this one.
It synchronizes 'til 56/56, but then it immediately starts from 0/56 and redoes this whole process. That's, I presume, until the transaction gets confirmed. This is the only error in my log file:
ERROR | interface.[192.168.2.2:50002] | Exception in run: RequestCorrupted('heights of confirmed txs must be in increasing order')
Traceback (most recent call last):
File "/home/angelo/Desktop/Electrum-4.2.1/electrum/util.py", line 1163, in wrapper
return await func(*args, **kwargs)
File "/home/angelo/Desktop/Electrum-4.2.1/electrum/interface.py", line 498, in wrapper_func
return await func(self, *args, **kwargs)
File "/home/angelo/Desktop/Electrum-4.2.1/electrum/interface.py", line 521, in run
await self.open_session(ssl_context)
File "/home/angelo/Desktop/Electrum-4.2.1/electrum/interface.py", line 671, in open_session
await group.spawn(self.monitor_connection)
File "/home/angelo/Desktop/Electrum-4.2.1/packages/aiorpcx/curio.py", line 297, in __aexit__
await self.join()
File "/home/angelo/Desktop/Electrum-4.2.1/electrum/util.py", line 1258, in join
task.result()
File "/home/angelo/Desktop/Electrum-4.2.1/electrum/synchronizer.py", line 83, in _run_tasks
await group.spawn(self.main())
File "/home/angelo/Desktop/Electrum-4.2.1/packages/aiorpcx/curio.py", line 297, in __aexit__
await self.join()
File "/home/angelo/Desktop/Electrum-4.2.1/electrum/util.py", line 1258, in join
task.result()
File "/home/angelo/Desktop/Electrum-4.2.1/electrum/synchronizer.py", line 180, in _on_address_status
result = await self.interface.get_history_for_scripthash(h)
File "/home/angelo/Desktop/Electrum-4.2.1/electrum/interface.py", line 986, in get_history_for_scripthash
raise RequestCorrupted(f'heights of confirmed txs must be in increasing order')
electrum.interface.RequestCorrupted: heights of confirmed txs must be in increasing order
I DuckDuckWent it and it turns out that it has to do with
monotonicity of heights?