-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using import_multi with a descriptor and a large range returns a socket error, but only on version 0.14 #211
Comments
Because of this issue: rust-bitcoin/rust-bitcoincore-rpc#211
@chris-belcher I'm getting a similar error:
I I wanted to git bisect with your repro code, to see if that error was introduced in the same commit, but I wasn't able to get it to run. I got this error:
What command should be run to create the wallet? I tried setting Also, I'm getting this error on a mac. What OS are you running? |
That commit also upgraded |
I have a very similar issue opened on bitcoin core, but in that case it works with bitcoind installed by homebrew, and fails with bitcoind built from source, so it appears to be unrelated to the version of rust-bitcoincore-rpc. |
Is this possibly the result of the call just being particularly slow, and a timeout being hit? |
Hitting this trying to implement It seems the underlying |
I've worked around this in the past by using a custom client with a custom timeout: https://github.com/0xB10C/miningpool-observer/blob/master/daemon/src/main.rs#L149-L159 |
This code works for version 0.13 or below, once I upgrade to 0.14 this error started happening.
Here is code demonstrating the bug
This results in an error:
Error: JsonRpc(Transport(SocketError(Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" })))
The
cargo.toml
file:Changing to
bitcoincore-rpc = "0.13"
or below stops the error from happening.Reducing the value of
ADDRESS_IMPORT_COUNT
down to something like 500 or 50 instead of 5000 also makes the error disappear, indicating that the cause is the long runtime ofimportmulti
, possibly version 0.14 reduced a timeout somewhere.The text was updated successfully, but these errors were encountered: