Consensys / quorum-explorer

A light-weight front-end explorer for Besu and GoQuorum to visualise private networks and deploy smart contracts
Apache License 2.0
27 stars 36 forks source link

Why my transaction and Validator are NaN #41

Closed RockWu1108 closed 2 years ago

RockWu1108 commented 2 years ago

Why do my transactions and validators have errors in the block information? image

1.) config.json :

{
  "algorithm": "raft",
  "nodes": [
    {
      "name": "rpcnode",
      "client": "goquorum",
      "rpcUrl": "http://xxx.xxx.xxx.xxx:22000",
      "privateTxUrl": ""
    }
  ]
}

2.) env.local :

QE_BASEPATH="/explorer"
QE_CONFIG_PATH="./config.json"
NODE_ENV=development
DISABLE_AUTH=true
NEXTAUTH_URL=http://localhost:25000
NEXTAUTH_URL_INTERNAL=http://localhost:25000
NEXTAUTH_SECRET=d02ea4076f38d5832f37095a17a4021e

3.) docker-compose.yaml

services:
   explorer:
      image: consensys/quorum-explorer:latest
      volumes:
      - ./config.json:/app/config.json
      - ./.env.local:/app/.env.production
      ports:
      - 25000:25000/tcp
Ezzahhh commented 2 years ago

There are no validators in a RAFT network so this is intended to be empty. A future update could call API for the raft.leader to replace this field. Not much can be done about the NaN timestamps as GoQuorum does not return valid timestamps from calling eth_getBlockByNumber.

ware32 commented 1 year ago

any update about this for future releases?

joshuafernandes commented 1 year ago

Nothing, this has to be handled by GoQuorum ie it needs to be addressed there before we can make it a proper fix.