bitcoin-rpc-client icon indicating copy to clipboard operation
bitcoin-rpc-client copied to clipboard

rescanblockchain absent from query

Open phe-sto opened this issue 4 years ago • 2 comments

Hi, The rescanblockchain method is absent. It is a really useful command to insert several private keys without rescanning and only rescan once they are all inserted. The BitcoinRPCClient as a READ_TIMEOUT private static final of 1 minute. It is too short for rescanning after a single import passing the option to importprivatekey or rescanning with rescanblockchain. On my computer, I have a branch where an attribute replace READ_TIMEOUT, it can therefore be change and adapted for specific queries. I was then able to add the rescanblockchain. Is there an important reason why READ_TIMEOUT private static final is used for connection timeout? Otherwise do you want me to make a PR with this version of the class and the rescanblockchain query? Best regards,

phe-sto avatar Jan 10 '21 18:01 phe-sto

Hello, we don't use that method so I never faced the problem. If you want to try working on it, a PR is welcome.

Polve avatar Jan 10 '21 20:01 Polve

Thanks, I will try to do so.

phe-sto avatar Jan 10 '21 20:01 phe-sto