Closed sandipndev closed 3 years ago
The linked PR fixes this issue in regtest mode for devs running electrum locally.
Otherwise, this would depend on whether or not there is throttling on --txid-limit
flag of the electrs
instance the bdk
library is connected to. Since from bdk we probably don't have any control of electrs, ideally, this issue should be detected and an appropriate error must be thrown.
I've also updated the bitcoindevkit/electrs:latest
image on docker hub with this fix.
Description
After generating many txs (100+) to some given address, syncing with electrs node fails with erratic errors.
I would like to add that when I tested using 5-10 transactions, it worked properly, only when the amount of transactions is big, the electrs server reports querying would take a long time and sync fails eventually.
Logs
When I was requesting these
sync
s, I captured the section of logs generated from the docker container above which outputs logs straight fromelectrs
via this, here are the logs exactly at the moment:Environment
I am using bitcoindevkit/electrs:0.4.0 docker image which uses a local regtest network for testing. Required ports are exposed following the instructions here. Also, I am using bdk version
BDK CLI 0.2.1-dev
.Reproduction steps
Expected Behaviour
I think syncs should not depend on the number of txs present in the blockchain. This problem could probably be an issue with timeouts during sync.