Title: rpctimeout Post by: buckyball on November 19, 2020, 02:02:12 AM What is the easiest way of finding out what the rpctimeout setting of a running server is?
If it is not specified in the bitcoin.conf file then is there a way that I can query the server to get this information using bitcoin-cli or the JSON RPC interface? Thanks! Title: Re: rpctimeout Post by: nc50lc on November 19, 2020, 06:28:04 AM The default -rpcservertimeout is 30seconds: /bitcoin/blob/master/src/httpserver.h#L13 (https://github.com/bitcoin/bitcoin/blob/master/src/httpserver.h#L13)
Other than that, IDK if there's a way to query the value set by the user. Title: Re: rpctimeout Post by: NotATether on November 19, 2020, 07:30:41 AM The default -rpcservertimeout is 30seconds: /bitcoin/blob/master/src/httpserver.h#L13 (https://github.com/bitcoin/bitcoin/blob/master/src/httpserver.h#L13) Other than that, IDK if there's a way to query the value set by the user. There is no RPC call for querying rpctimeout, so unless you somehow get the node's bitcoin.conf file, the only method I can think of is if you spoof a slow internet connection like calling bitcoin-cli from a virtual machine with a throttled network interface, enough to trigger the timeout, and measure the time it took using something like time command in bash. Title: Re: rpctimeout Post by: buckyball on November 19, 2020, 09:04:24 AM Thank you nc50lc and NotATether - useful info
|