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

Chain type field #3790

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Chain type field #3790

merged 2 commits into from
Sep 12, 2024

Conversation

aglkm
Copy link
Contributor

@aglkm aglkm commented May 28, 2024

Added chain type field into get_status rpc as following:

{
  "id": 1,
  "result": {
    "Ok": {
      "chain": "main",
      "connections": 8,
      "protocol_version": 1000,
      "sync_status": "no_sync",
      "tip": {
        "height": 2813226,
        "last_block_pushed": "0001664af94b6e9585ac10c3925f3ab601165aca833f794ed676b5ee25f50c5f",
        "prev_block_to_last": "0001cf87025e4e515063263caee56ad3d7c6cdaf2e08751fdb1f10b5fe95f619",
        "total_difficulty": 2175334614969923
      },
      "user_agent": "MW/Grin 5.4.0-alpha.0"
    }
  }
}
Chain type: main
Protocol version: 1000
User agent: MW/Grin 5.4.0-alpha.0
Connections: 8
Chain height: 2813226
Last block hash: 0001664af94b6e9585ac10c3925f3ab601165aca833f794ed676b5ee25f50c5f
Previous block hash: 0001cf87025e4e515063263caee56ad3d7c6cdaf2e08751fdb1f10b5fe95f619
Total difficulty: 2175334614969923
Sync status: no_sync

Related to #3777

Copy link
Member

@yeastplume yeastplume left a comment

Choose a reason for hiding this comment

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

LGTM

@yeastplume yeastplume merged commit 01b2565 into mimblewimble:master Sep 12, 2024
yeastplume added a commit that referenced this pull request Sep 16, 2024
* Update grin_secp to 0.7.14 (#3788)

* Update versioning on master to 5.4.0-alpha.0

* Update versioning on master to 5.4.0-alpha.0 (#3789)

* Remove Merkle Proof Generation from Foreign API `get_outputs` (#3792)

* Update versioning on master to 5.4.0-alpha.0

* Remove merkle proof generation from foreign API

* Rust 1.80+ fixes & accumulated warning cleanup (#3796)

* Update versioning on master to 5.4.0-alpha.0

* updates for 1.80 and other accumulated warnings

* further warning cleanups

* move dead code tag to function defn rather than module

* Chain type field (#3790)

* Adding chain type field into get_status rpc

* formatting

* update version for next build

---------

Co-authored-by: aglkm <[email protected]>
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.

2 participants