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.
0admin@raspibolt2:~ $ time bitcoin-cli getbestblockhash
10000000000000000000208fcdfe388b464d7a7ef9c05b2ad2701488f1eedbe70
2
3real 10m21.332s
4user 0m0.000s
5sys 0m0.026s
6admin@raspibolt2:~ $ time bitcoin-cli getbestblockhash
7000000000000000000002f0d8fcab1392628ed73aa18848aa44cb53de6dff349
8
9real 11m34.199s
10user 0m0.002s
11sys 0m0.044s
12admin@raspibolt2:~ $ time bitcoin-cli getbestblockhash
130000000000000000000083ac9f1bc7ae399cd89f84c3058e5e7905a66da66394
14
15real 4m40.592s
16user 0m0.008s
17sys 0m0.019s
18admin@raspibolt2:~ $ time bitcoin-cli getbestblockhash
190000000000000000000083ac9f1bc7ae399cd89f84c3058e5e7905a66da66394
20
21real 0m0.144s
22user 0m0.007s
23sys 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