<p>I am running <code>bitcoind</code> and it is updating blocks as follows:</p>
<p><a href="https://i.sstatic.net/Ip1VS.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Ip1VS.png" alt="running bitcoind" /></a></p>
<p>However, when I have run <code>bitcoin-cli getpeerinfo</code>, it only returns an empty list, but not peers connected. So if there is no peer connected to my node, how can my <code>bitcoind</code> node update and download blocks from internet?</p>
<p><a href="https://i.sstatic.net/LVGq5.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/LVGq5.png" alt="bitcoin-cli getpeerinfo" /></a></p>

CC BY-SA 4.0
2023-01-15T22:46:05.370Z
Is it possible that at the time you issued the RPC command you accidentally had no connections, but at other times you do?
Pieter Wuille
CC BY-SA 4.0
2023-01-17T15:20:37.270Z
Was this call made at the same time the log lines were produced? Is your bitcoin-cli connected to the same instance of `bitcoind` that you were reading the logs of?
Murch
CC BY-SA 4.0
2023-02-01T16:26:49.513Z
Yes, my `bitcoin-cli` is connected to the same instance of `bitcoind`, and when I restarted `bitcoind` after several days, rerunning `getpeerinfo` command shows the peer information. I think @PieterWuille was right that maybe it had accidentally no connections at that time.
Dzanvu
<bitcoin-cli><peer-discovery>
Why my bitcoin-cli getpeerinfo return an empty list?
Dzanvu
# Why my bitcoin-cli getpeerinfo return an empty list?

(Asked by: username_0 on 2023-01-14)

I am running `bitcoind` and it is updating blocks as follows:

[![running bitcoind](https://i.sstatic.net/Ip1VS.png)](https://i.sstatic.net/Ip1VS.png)

However, when I have run `bitcoin-cli getpeerinfo`, it only returns an empty list, but not peers connected. So if there is no peer connected to my node, how can my `bitcoind` node update and download blocks from internet?

[![bitcoin-cli getpeerinfo](https://i.sstatic.net/LVGq5.png)](https://i.sstatic.net/LVGq5.png)

**Tags:** bitcoin-cli, peer-discovery

> **Comments:**
> **username_1**: Is it possible that at the time you issued the RPC command you accidentally had no connections, but at other times you do?  
> **username_2**: Was this call made at the same time the log lines were produced? Is your bitcoin-cli connected to the same instance of `bitcoind` that you were reading the logs of?  
> **username_0**: Yes, my `bitcoin-cli` is connected to the same instance of `bitcoind`, and when I restarted `bitcoind` after several days, rerunning `getpeerinfo` command shows the peer information. I think @PieterWuille was right that maybe it had accidentally no connections at that time.  

---

## 0 answers

