bnb-chain / node

Mozilla Public License 2.0
80 stars 38 forks source link

missing valid certifier to verify data from trusted node #975

Closed Hossein-Teimouri closed 1 year ago

Hossein-Teimouri commented 1 year ago

curl localhost:27147/status

{
  "jsonrpc": "2.0",
  "id": "",
  "result": {
    "node_info": {
      "protocol_version": {
        "p2p": "7",
        "block": "10",
        "app": "0"
      },
      "id": "f31079d425f13f49ef060eff602d011d108966de",
      "listen_addr": "tcp://0.0.0.0:27146",
      "network": "Binance-Chain-Tigris",
      "version": "0.32.3",
      "channels": "36402021222330380041",
      "moniker": "mainNode",
      "other": {
        "tx_index": "on",
        "rpc_address": "tcp://0.0.0.0:27147"
      }
    },
    "sync_info": {
      "latest_block_hash": "3F95BE59194A303570E9839D4DA19467672CAAC4C8B659DA51E73DE051FC2E14",
      "latest_app_hash": "49A1416D13EB8BEE893C103C08BE652DDCCA79DF53236DC258B7D5BC52B63B98",
      "latest_block_height": "326049509",
      "latest_block_time": "2023-07-09T05:22:02.520927087Z",
      "catching_up": false,
      "index_height": "326049509"
    },
    "validator_info": {
      "address": "59609269A750E709A3070E405D3618962C509505",
      "pub_key": {
        "type": "tendermint/PubKeyEd25519",
        "value": "RrSfc1iIO6QzNDg7hKzztC5lnfLz6Tu5XNN2TqzUZ2A="
      },
      "voting_power": "0"
    }
  }
}

./bnbcli --node tcp://0.0.0.0:27147 account "bnb1glj8cgqehha80gwyjckxtwcptnj8hehqffx5vw"

ERROR: missing valid certifier to verify data from distrusted node

What should I do to solve this error?

Hossein-Teimouri commented 1 year ago

Using --trust-node in the executive command solved my problem.

./bnbcli --node tcp://0.0.0.0:27147 account "bnb1glj8cgqehha80gwyjckxtwcptnj8hehqffx5vw" --trust-node