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

Add admin_consensusInfo API #2062

Merged
merged 1 commit into from
Dec 21, 2024
Merged

Add admin_consensusInfo API #2062

merged 1 commit into from
Dec 21, 2024

Conversation

JamesHinshelwood
Copy link
Contributor

@JamesHinshelwood JamesHinshelwood commented Dec 20, 2024

This returns consensus-specific information that is useful for debugging the current status of a node.

Example:

$ xh post :4201 jsonrpc=2.0 id=1 method=admin_consensusInfo -b
{
    "jsonrpc": "2.0",
    "id": "1",
    "result": {
        "view": "0x1e",
        "high_qc": {
            "signature": "0xb82c814efbb00923e78f549e171932b5029d44f789b18d12fb877f01b6466c8658d62ddf9cb1dd1a44ffb3b7c2871bfd13e0ef1f79579f029e186990a94d20ea7526541b6b4d428b0bd3947c7f2d088744c85291d10dcfd05dc69f93991e198f",
            "cosigned": "0xe000000000000000000000000000000000000000000000000000000000000000",
            "view": "0x1c",
            "block_hash": "0x3d0d192ef0235d632c4f115a9021245ac4047980422f12890e7f045157a746f2"
        },
        "milliseconds_since_last_view_change": 46,
        "milliseconds_until_next_view_change": 4954
    }
}

Closes #1753

This returns consensus-specific information that is useful for
debugging the current status of a node.

Example:
```
$ xh post :4201 jsonrpc=2.0 id=1 method=admin_consensusInfo -b
{
    "jsonrpc": "2.0",
    "id": "1",
    "result": {
        "view": "0x1e",
        "high_qc": {
            "signature": "0xb82c814efbb00923e78f549e171932b5029d44f789b18d12fb877f01b6466c8658d62ddf9cb1dd1a44ffb3b7c2871bfd13e0ef1f79579f029e186990a94d20ea7526541b6b4d428b0bd3947c7f2d088744c85291d10dcfd05dc69f93991e198f",
            "cosigned": "0xe000000000000000000000000000000000000000000000000000000000000000",
            "view": "0x1c",
            "block_hash": "0x3d0d192ef0235d632c4f115a9021245ac4047980422f12890e7f045157a746f2"
        },
        "milliseconds_since_last_view_change": 46,
        "milliseconds_until_next_view_change": 4954
    }
}
```
Copy link
Contributor

🐰 Bencher Report

Branchadmin-consensus-info
Testbedself-hosted
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
process-empty/process-empty📈 view plot
🚷 view threshold
8,286,000.00
(-9.29%)
10,423,714.39
(79.49%)
produce-full/produce-full📈 view plot
🚷 view threshold
1,726,200,000.00
(-17.17%)
2,766,595,432.63
(62.39%)
🐰 View full continuous benchmarking report in Bencher

@JamesHinshelwood JamesHinshelwood added this pull request to the merge queue Dec 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Dec 21, 2024
@JamesHinshelwood JamesHinshelwood added this pull request to the merge queue Dec 21, 2024
Merged via the queue into main with commit 05fbb80 Dec 21, 2024
6 of 7 checks passed
@JamesHinshelwood JamesHinshelwood deleted the admin-consensus-info branch December 21, 2024 00:29
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.

add new RPC method to query a node's local view
2 participants