monero-project / monero

Monero: the secure, private, untraceable cryptocurrency
https://getmonero.org
Other
9.04k stars 3.12k forks source link

[Bug Report] Windows, database_size field from get_info is 0 #9513

Open Cyrix126 opened 1 month ago

Cyrix126 commented 1 month ago

On Windows at least 10 & 11, the method "get_info" of the endpoint /json_rpc will always have a value of 0 on field "database_size".

To reproduce:

  1. Start monerod without any args on a Windows system.
  2. execute in cmd: curl -d "{\"jsonrpc\":\"2.0\",\"id\":\"0\",\"method\":\"get_info\"}" http://127.0.0.1:18081/json_rpc
  3. See the field "database_size" "database_size": 0,
jeffro256 commented 1 month ago

I don't have a windows machine on me, but could you try compiling PR #9514 please and see if it fixes the issue?

Cyrix126 commented 1 month ago

@jeffro256 Now it shows this value without changing: 18446744072227688448, so 18.446EB