Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
I'm running Bitcoin Core v29 on a RPi v4 with 4GB RAM and 2TB SSD. Sometimes when I run "getbestblockhash" it takes a very long time.
admin@raspibolt2:~ $ time bitcoin-cli getbestblockhash
0000000000000000000208fcdfe388b464d7a7ef9c05b2ad2701488f1eedbe70
real 10m21.332s
user 0m0.000s
sys 0m0.026s
admin@raspibolt2:~ $ time bitcoin-cli getbestblockhash
000000000000000000002f0d8fcab1392628ed73aa18848aa44cb53de6dff349
real 11m34.199s
user 0m0.002s
sys 0m0.044s
admin@raspibolt2:~ $ time bitcoin-cli getbestblockhash
0000000000000000000083ac9f1bc7ae399cd89f84c3058e5e7905a66da66394
real 4m40.592s
user 0m0.008s
sys 0m0.019s
admin@raspibolt2:~ $ time bitcoin-cli getbestblockhash
0000000000000000000083ac9f1bc7ae399cd89f84c3058e5e7905a66da66394
real 0m0.144s
user 0m0.007s
sys 0m0.009s
The last entry I ran immediately after the previous call and it returns the same hash which I guess is cached or easier to read on a subsequent call. I don't see anything in the logs but I am running the default log settings.
Is there something that I need to tweak to get this to be more performant? Is there any other information needed to debug this?
Expected behaviour
getbestblockhash should return in seconds instead of minutes
Steps to reproduce
bitcoin-cli getbestblockhash ....I'm not certain what data or environmental issues would cause it to take minutes to return.
Relevant log output
No response
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
v29
Operating system and version
Debian Bullseye Lite
Machine specifications
RPI 4 4GB RAM 2TB SSD connected via USB