WARNING: check your network connection, 1 blocks received in the last 4 hours (96 expected)

I’m running Zcashd in regtest mode, after some time, when I run command zcash-cli getinfo I’m getting the following error :

{
  "version": 2000050,
  "protocolversion": 170007,
  "walletversion": 60000,
  "balance": 80.00000000,
  "blocks": 108,
  "timeoffset": 0,
  "connections": 0,
  "proxy": "",
  "difficulty": 1.000006079711092,
  "testnet": false,
  "keypoololdest": 1538977420,
  "keypoolsize": 101,
  "paytxfee": 0.00000000,
  "relayfee": 0.00000100,
  "errors": "WARNING: check your network connection, 1 blocks received in the last 4 hours (96 expected)"
}

I tried running it on testnet mode as well, I’m still getting the same error.

Can anyone help me with this?

regtest mode is only for creating local networks for testing; the error you see is because you haven’t mined any blocks, so the warning gets triggered.

testnet is currently showing a similar error due to a bug that we are fixing in 2.0.1; once that is released, upgrade to that and testnet should start working again.

Thanks for the info.