You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a loop to update all wallet balances (multiple threads concurrent):
for all accounts in DB:
start, end := GetXpubRange(account)
addressList := GenerateAddressesByXpub(start, end)
foreach addr in addressList:
unspent, err := electrum.ListUnspent(addr)
We configured a timeout of 3sec for ListUnspent(). When there are 10k+ requests this timeout gets hit repeatedly as if Fulcrum has throttled/blacklisted our IP. Fulcrum continues to answer requests to a 2nd client on another IP within seconds (and the server load is ~0). Without this timeout + retry Fulcrum just stops responding (no error).
We run our own Fulcrum server on localhost (see Fulcum debug log below for when this happens). There are no errors other than the repeated reconnects which are done by our Go implementation when we don't get the expected response from Fulcrum)
Questions:
Is there a rate limiting config we overlooked? We played with subnets_to_exclude_from_per_ip_limits unsuccessfully (localhost allowed by default)
could there be some semaphore/mutex in that's throttling us (per client IP)?
Yes it's still happening with latest Fulcrum 1.9.7. You can just use any xPub and generate addresses (even with empty balances) in a loop and Fulcrum will timeout in ListUnspent() after around 10k requests unless we re-connect.
I'm using Fulcrum server for prompt.cash with this Go client https://github.com/checksum0/go-electrum
We have a loop to update all wallet balances (multiple threads concurrent):
We configured a timeout of 3sec for
ListUnspent()
. When there are 10k+ requests this timeout gets hit repeatedly as if Fulcrum has throttled/blacklisted our IP. Fulcrum continues to answer requests to a 2nd client on another IP within seconds (and the server load is ~0).Without this timeout + retry Fulcrum just stops responding (no error).
We run our own Fulcrum server on localhost (see Fulcum debug log below for when this happens). There are no errors other than the repeated reconnects which are done by our Go implementation when we don't get the expected response from Fulcrum)
Questions:
subnets_to_exclude_from_per_ip_limits
unsuccessfully (localhost allowed by default)The text was updated successfully, but these errors were encountered: