Skip to content

Ensure miden-base versions match in RPC header check #1040

@tomyrd

Description

@tomyrd

There is also a different but related problem that we can also have where miden-node and miden-client use a different miden-base revision. Client integration tests catch this (so we push a PR to the node when we need to), but there have been several instances where users themselves maybe update the client but not the local node they are running, and so they may get a more cryptic error. The problem may even look like a client problem at first sight because it's at the execution phase, for example, but in reality the problem is the incompatibility with node-incoming data and the client's data. So I wonder if we could do something for this case as well.

Originally posted by @igamigo in #804

Apart from the node<->client crate version check, there's another more niche case where the crate versions match but the miden-base version is different in each instance. This specific error shows up as an AdviceMapKeyNotFound error in the client so it's not always obvious that the issue is a version mismatch.
This error case is more common when developing but as Ignacio mentioned above, it may happen to users in specific instances.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions