Skip to content

feat: pass software version from abci to node info #1036

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

Merged
merged 4 commits into from
Jul 14, 2023

Conversation

cmwaters
Copy link
Contributor

Closes: #1035

@cmwaters cmwaters requested a review from evan-forbes as a code owner July 13, 2023 12:19
@cmwaters cmwaters self-assigned this Jul 13, 2023
@cmwaters cmwaters requested review from rootulp and staheri14 July 13, 2023 13:17
rootulp
rootulp previously approved these changes Jul 13, 2023
Copy link
Collaborator

@rootulp rootulp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally by running this PR. celestia-app reports version:

$ celestia-appd version
1.0.0-rc0-122-g16f92dbe

which is confirmed by /status endpoint

$ curl -X GET "http://localhost:26657/status" -H "accept: application/json" | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1093  100  1093    0     0   313k      0 --:--:-- --:--:-- --:--:-- 1067k
{
  "jsonrpc": "2.0",
  "id": -1,
  "result": {
    "node_info": {
      "protocol_version": {
        "p2p": "8",
        "block": "11",
        "app": "1"
      },
      "id": "c858506f3cc6381a584d5ea258f547b006dfcaa4",
      "listen_addr": "tcp://0.0.0.0:26656",
      "network": "private",
      "version": "1.0.0-rc0-122-g16f92dbe",
      "channels": "40202122233038606100",
      "moniker": "private",
      "other": {
        "tx_index": "on",
        "rpc_address": "tcp://0.0.0.0:26657"
      }
    },
    "sync_info": {
      "latest_block_hash": "01BFB0704A6BF9D1051CAC8450319A9772777558C5B162D165BB3EE698EF14F6",
      "latest_app_hash": "CB7A5276E65C8D28AE35778C0F0905E31CFF3063835F6968FF27B91F8414803B",
      "latest_block_height": "9",
      "latest_block_time": "2023-07-13T14:24:06.640833Z",
      "earliest_block_hash": "D12DD2E2B8DA75DABA05D72D7415615E4D40E5626DA757A1145CCD6865027DF8",
      "earliest_app_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
      "earliest_block_height": "1",
      "earliest_block_time": "2023-07-13T14:22:38.049966Z",
      "catching_up": false
    },
    "validator_info": {
      "address": "98241EA7597330EF1E64068D811A36B3B74177B6",
      "pub_key": {
        "type": "tendermint/PubKeyEd25519",
        "value": "YJs7EDSKNE+m7Nunv2vVusw1+kJ9TdK9YhCTO1AyWrs="
      },
      "voting_power": "5000"
    }
  }
}

@cmwaters
Copy link
Contributor Author

1.0.0-rc0-122-g16f92dbe

What's the 122 mean? I assume the last bit is the truncated hash of the commit

@cmwaters cmwaters requested a review from rootulp July 13, 2023 14:33
@rootulp
Copy link
Collaborator

rootulp commented Jul 13, 2023

What's the 122 mean?

TBH I'm not sure

@@ -238,17 +238,17 @@ func (h *Handshaker) NBlocks() int {
}

// TODO: retry the handshake/replay if it fails ?
func (h *Handshaker) Handshake(proxyApp proxy.AppConns) error {
func (h *Handshaker) Handshake(proxyApp proxy.AppConns) (string, error) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A func description, including what each output represents, would be really useful.

@cmwaters cmwaters enabled auto-merge (squash) July 14, 2023 10:47
@cmwaters cmwaters merged commit d5cd08c into v0.34.x-celestia Jul 14, 2023
@cmwaters cmwaters deleted the cal/software-version branch July 14, 2023 10:55
cmwaters added a commit that referenced this pull request Jul 20, 2023
* pass software version from abci to node info

* Update consensus/replay_test.go

Co-authored-by: Rootul P <[email protected]>
cmwaters added a commit that referenced this pull request Jul 24, 2023
* pass software version from abci to node info

* Update consensus/replay_test.go

Co-authored-by: Rootul P <[email protected]>
@faddat faddat mentioned this pull request Feb 22, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show celestia version in the RPC status endpoint
3 participants