Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oasis network status doesn't show ParaTime ID during oasis-node startup #341

Closed
matevz opened this issue Jan 7, 2025 · 0 comments · Fixed by #343
Closed

oasis network status doesn't show ParaTime ID during oasis-node startup #341

matevz opened this issue Jan 7, 2025 · 0 comments · Fixed by #343
Assignees
Labels
bug Something isn't working

Comments

@matevz
Copy link
Member

matevz commented Jan 7, 2025

Followup to #313.

When you restart your oasis-node ParaTime client node and until the node is correctly spun up, running oasis net status yields:

==== ParaTimes ====
  Status:               waiting for consensus sync
  Latest round:         7052851 (2025-01-07 01:50:05 +0100 CET)
  Last finalized round: 18446744073709551615
  Storage status:       initializing
  Number of peers:      27
  Status:               waiting for consensus sync
  Latest round:         5800108 (2025-01-07 01:50:05 +0100 CET)
  Last finalized round: 18446744073709551615
  Storage status:       initializing
  Number of peers:      23
  Status:               waiting for consensus sync
  Latest round:         13736359 (2025-01-07 01:50:05 +0100 CET)
  Last finalized round: 18446744073709551615
  Storage status:       initializing
  Number of peers:      21

Raw runtimes: JSON value is

"000000000000000000000000000000000000000000000000e199119c992377cb": {
      "descriptor": null,
      "latest_round": 5800708,
      "latest_hash": "a22d032bbe32aaef3893da9f57299387493f37eaaa188f84f14300d58ce86745",
      "latest_time": "2025-01-07T02:48:58+01:00",
      "latest_state_root": {
        "ns": "000000000000000000000000000000000000000000000000e199119c992377cb",
        "version": 5800708,
        "root_type": 1,
        "hash": "1ed76fd1d94f0254fd1eea5505ed03927dc91d9094bcd9d681d4e35193019573"
      },
      "genesis_round": 44054,
      "genesis_hash": "7f14a395c6daa1ec492152a29c8c27f5b84fba94e09652d765d6d0937ba2abfb",
      "last_retained_round": 44054,
      "last_retained_hash": "7f14a395c6daa1ec492152a29c8c27f5b84fba94e09652d765d6d0937ba2abfb",
      "committee": {
        "status": "waiting for consensus sync",
        "active_version": null,
        "latest_round": 0,
        "latest_height": 0,
        "executor_roles": null,
        "scheduler_rank": 18446744073709551615,
        "peers": [
          "/ip4/212.232.29.235/tcp/35002/p2p/12D3KooWSHF3gtW3thCZVJ3HJJTHNyJMB273iEVbJHVPpRYpdmmb",
          "/ip4/51.178.74.149/tcp/30002/p2p/12D3KooWS74Wqr1ZYLWafymznv4ib48DzDdmgZzVqMkM2ntNg5DZ",
          "/ip4/193.201.82.230/tcp/30004/p2p/12D3KooWDS9tESF1LoWjAAWkEa4bnjRuxpHjaz5T5VTKjN7BfGe2",
          "/ip4/131.153.158.97/tcp/30002/p2p/12D3KooWSnJtBMWpaYmwZgkHQApefXzuQhUxRencTzwyuXzuWpFf",
          "/ip4/131.153.154.13/tcp/30002/p2p/12D3KooWGfyNBqnppXZ1jo8zRcav3uKunj85HGbEDqj67d72jbJv",
          "/ip4/174.138.162.2/tcp/30002/p2p/12D3KooWAYVr6x3xpw7PCywXwbsneDc4eAN9SiaT4TndL61xE64J",
          "/ip4/51.81.57.69/tcp/30002/p2p/12D3KooWAcrMmjagXif4ocSDeZxWT4XA8LMNinHASwrmG2uV64H5",
          "/ip4/131.153.59.34/tcp/26892/p2p/12D3KooWB4GhP7dXsBnFjTpkgr3sCmwkKxcmDhkHKNxZ3CrGgHDR",
          "/ip4/131.153.99.10/tcp/30002/p2p/12D3KooWKPMS72iRgPDWczMVzKyYa3DSZmc771XDNXnMWVPnjfmJ",
          "/ip4/131.153.57.226/tcp/30002/p2p/12D3KooWDzq86WGEqEHcVCYfhukxuYKPq7cjrCxwsYg5euBpTcfi",
          "/ip4/146.59.149.28/tcp/30002/p2p/12D3KooWEvfS5EdnpcC8etv8eiE3oSkhWid2FEXb5oAisZT3AJyo",
          "/ip4/185.107.80.40/tcp/30002/p2p/12D3KooWHHG9fq9bLSKSdtQXBtqMJj4K3zyDCUJU9PvEKj7CBFbw",
          "/ip4/51.161.119.139/tcp/30002/p2p/12D3KooWSJ4WnjUY76cfiifujynaxD15QnCdQfzxuJsyqzat24rp",
          "/ip4/51.178.76.217/tcp/30002/p2p/12D3KooWKTvsowgyv3WRTVm2dvEBtxpKsshWKtKJmGriGDPdzRBM",
          "/ip4/131.153.164.15/tcp/30002/p2p/12D3KooWCixcEb3YyZqQnANYX9YLVuAxQ2tNaRapQuYh9TeTTFZV",
          "/ip4/159.69.52.65/tcp/30002/p2p/12D3KooWPpiyYnbVsjKopU6fd6jdgrQuwZKYmdCHZV2YykJBdCQe",
          "/ip4/141.95.34.239/tcp/30002/p2p/12D3KooWQaNYjegtZyFtyrRNCF1yxB3sgGtBgY8asgEpFEcXPJiS",
          "/ip4/131.153.165.57/tcp/30002/p2p/12D3KooWStTpimpJLSa85gsWG17SGpdh43pHogQDhzFGiKXDQAJe",
          "/ip4/135.181.112.38/tcp/9200/p2p/12D3KooWSyaGh3PZScCVDZKteMTEszm4GXPBP2Fv8k5QfTLUvbhF",
          "/ip4/34.135.12.249/tcp/9002/p2p/12D3KooWNxPsNEZa1P8cFoqHwevBAzjx81hAxUXPLs9nKajbUoy8",
          "/ip4/131.153.243.57/tcp/9200/p2p/12D3KooWBis9Goyc6FiP5fNKq2U241MrvPWgLph8uSPhAm9UeUt7",
          "/ip4/131.153.241.91/tcp/9200/p2p/12D3KooWFCJAW8eKGyBHtgZ5YDozsr91bWnPqdTBmEKGbiKLucQq",
          "/ip4/131.153.241.90/tcp/9200/p2p/12D3KooWNG3fPsJWk2JGZ3tXZ4wShgdTZhHyKnjBRjRF9vMKCbBp"
        ],
        "host": {
          "versions": [
            {
              "major": 3,
              "minor": 1,
              "patch": 2
            }
          ]
        }
      },
      "storage": {
        "status": "initializing",
        "last_finalized_round": 18446744073709551615
      },
      "provisioner": "pending"
    },

As you can see, the descriptior field is empty (it gets populated when the node is synced?). I suggest we use the value inside the keys instead of relying on the valid descriptor.ID field here: https://github.com/oasisprotocol/cli/blob/master/cmd/network/status.go

@matevz matevz added the bug Something isn't working label Jan 7, 2025
@amela amela linked a pull request Jan 8, 2025 that will close this issue
@amela amela closed this as completed in #343 Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants