Skip to content

[Access] Compatible Range in node version info does not reflect compatibility overrides #7014

@peterargue

Description

@peterargue

The Access API's node version info endpoint includes the range of blocks that the node's version is compatible with

if b.versionControl != nil {
compatibleRange = &access.CompatibleRange{
StartHeight: b.versionControl.StartHeight(),
EndHeight: b.versionControl.EndHeight(),
}
}

$ curl "http://access-001.devnet52.nodes.onflow.org:8070/v1/node_version_info"                                                    
{
        "semver": "v0.38.1",
        "commit": "1bfbed9de87fff55e551ac97ffec3f758653d4b1",
        "spork_id": "5b88b81cfce2619305213489c2137f98e6efa0ec333dab2c31042b743388a3ce",
        "protocol_version": "36",
        "spork_root_block_height": "218215349",
        "node_root_block_height": "218215349",
        "compatible_range": {
                "start_height": "242365900",
                "end_height": "242374176"
        }
}

This does not reflect the compatibility overrides:

var defaultCompatibilityOverrides = map[string]struct{}{
"0.37.17": {},
"0.37.18": {},
"0.37.22": {},
"0.37.26": {},
"0.38.0": {},
}

Metadata

Metadata

Labels

BugSomething isn't workingPreserveStale Bot repellentS-Access

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions