Skip to content

node uptime wrong #34326

@embetrix

Description

@embetrix

Is there an existing issue for this?

  • I have searched the existing issues

Current behaviour

System is freshly booted but bitcoind show wrong uptime:

root@raspberrypi5-c8-bf-64:~# bitcoin-cli -conf=/etc/bitcoin/bitcoin.conf uptime
20120688

My real uptime:

root@raspberrypi5-c8-bf-64:~# uptime 
 15:53:22 up 10 min,  0 user,  load average: 0.61, 0.56, 0.31

version:

root@raspberrypi5-c8-bf-64:~# bitcoind --version
Bitcoin Core daemon version v30.2.0 bitcoind
Copyright (C) 2009-2026 The Bitcoin Core developers

Please contribute if you find Bitcoin Core useful. Visit
<https://bitcoincore.org/> for further information about the software.
The source code is available from <https://github.com/bitcoin/bitcoin>.

This is experimental software.
Distributed under the MIT software license, see the accompanying file COPYING
or <https://opensource.org/license/MIT>

bitcoin conf file:

root@raspberrypi5-c8-bf-64:~# cat /etc/bitcoin/bitcoin.conf 
#############################################################
# Bitcoin configuration file
#############################################################
pid=/run/bitcoin/bitcoind.pid
nodebuglogfile=1
datadir=/var/bitcoin
loglevel=info
proxy=127.0.0.1:9050
signer=/usr/bin/hwi

# Settings for signet Network
signet=1

[signet]
walletdir=/var/wallets
listen=1
bind=127.0.0.1
port=38333

# RPC Settings
rpcuser=satobox
rpcport=38332
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
rpcauth=satobox:3381456077fa06cabce053c62a368693$263f4f1cbdc1b4b25233385b931807508f5d8bd59d2c46dc418e4ea2b23dfd09
rpccookiefile=/run/bitcoin/cookie
rpccookieperms=group
server=1
deprecatedrpc=warnings

Expected behaviour

should show correct uptime

Steps to reproduce

just build new bitcoin core and test with commands above

Relevant log output

No response

How did you obtain Bitcoin Core

Compiled from source

What version of Bitcoin Core are you using?

v30.2

Operating system and version

linux

Machine specifications

raspberrypi5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions