-
Notifications
You must be signed in to change notification settings - Fork 217
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
Negotiate NodeToClientVersion for non-breaking mainnet support #2791
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version negotiation - Excellent, thanks. 👍
It's only the codecs which need V_9, right? We don't make any queries yet that specifically require V_9? And I suppose that QueryIfCurrentAlonzo
works under V_8 by never ever running the query.
31fa627
to
5dba8cd
Compare
On Mary, nothing we do should require V_9. Even Frankly, I'm not sure exactly what needs
So I'd suspect |
bors r+ |
2791: Negotiate NodeToClientVersion for non-breaking mainnet support r=Anviking a=Anviking # Issue Number ADP-1025 # Background #2763 made the wallet demand NodeToClientV_9. With cardano-node 1.28.0, V_9 is only enabled if `TestEnableDevelopmentNetworkProtocols` is set in the node config. # Overview - [x] Make the wallet support both `V_8` and `V_9`. - [x] Ensure integration tests on Mary are run without `TestEnableDevelopmentNetworkProtocols: True` # Comments <!-- Additional comments or screenshots to attach if any --> <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Jira will detect and link to this PR once created, but you can also link this PR in the description of the corresponding ticket ✓ Acknowledge any changes required to the Wiki ✓ Finally, in the PR description delete any empty sections and all text commented in <!--, so that this text does not appear in merge commit messages. --> Co-authored-by: Johannes Lund <[email protected]>
5dba8cd
to
d99407b
Compare
Canceled. |
bors r+ |
2791: Negotiate NodeToClientVersion for non-breaking mainnet support r=Anviking a=Anviking # Issue Number ADP-1025 # Background #2763 made the wallet demand NodeToClientV_9. With cardano-node 1.28.0, V_9 is only enabled if `TestEnableDevelopmentNetworkProtocols` is set in the node config. # Overview - [x] Make the wallet support both `V_8` and `V_9`. - [x] Ensure integration tests on Mary are run without `TestEnableDevelopmentNetworkProtocols: True` # Comments <!-- Additional comments or screenshots to attach if any --> <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Jira will detect and link to this PR once created, but you can also link this PR in the description of the corresponding ticket ✓ Acknowledge any changes required to the Wiki ✓ Finally, in the PR description delete any empty sections and all text commented in <!--, so that this text does not appear in merge commit messages. --> Co-authored-by: Johannes Lund <[email protected]>
Build failed: #expected (weeder) |
30360ad
to
10c0573
Compare
bors r+ |
2791: Negotiate NodeToClientVersion for non-breaking mainnet support r=Anviking a=Anviking # Issue Number ADP-1025 # Background #2763 made the wallet demand NodeToClientV_9. With cardano-node 1.28.0, V_9 is only enabled if `TestEnableDevelopmentNetworkProtocols` is set in the node config. # Overview - [x] Make the wallet support both `V_8` and `V_9`. - [x] Ensure integration tests on Mary are run without `TestEnableDevelopmentNetworkProtocols: True` # Comments <!-- Additional comments or screenshots to attach if any --> <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Jira will detect and link to this PR once created, but you can also link this PR in the description of the corresponding ticket ✓ Acknowledge any changes required to the Wiki ✓ Finally, in the PR description delete any empty sections and all text commented in <!--, so that this text does not appear in merge commit messages. --> Co-authored-by: Johannes Lund <[email protected]>
10c0573
to
1342308
Compare
Canceled. |
bors r+ |
2791: Negotiate NodeToClientVersion for non-breaking mainnet support r=Anviking a=Anviking # Issue Number ADP-1025 # Background #2763 made the wallet demand NodeToClientV_9. With cardano-node 1.28.0, V_9 is only enabled if `TestEnableDevelopmentNetworkProtocols` is set in the node config. # Overview - [x] Make the wallet support both `V_8` and `V_9`. - [x] Ensure integration tests on Mary are run without `TestEnableDevelopmentNetworkProtocols: True` # Comments <!-- Additional comments or screenshots to attach if any --> <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Jira will detect and link to this PR once created, but you can also link this PR in the description of the corresponding ticket ✓ Acknowledge any changes required to the Wiki ✓ Finally, in the PR description delete any empty sections and all text commented in <!--, so that this text does not appear in merge commit messages. --> Co-authored-by: Johannes Lund <[email protected]>
1. Make Ouroboros applications not hard-code the version 2. Pass in both V_8 and V_9 3. Only parse the NetworkMagic from genesis, not the NodeToClientVersion. This seemed unused anyway.
Instead of always setting TestEnableDevelopmentNetworkProtocols in the integration tests, with this commit we only set it if the era is Alonzo. Because we run the integration tests on Mary in buildkite, this should mean that the wallet now again works with mainnet nodes, without TestEnableDevelopmentNetworkProtocols. Haven't actually tested to connect against mainnet. But I did sanity check that we got "eras": { "shelley": { "epoch_start_time": "2021-07-31T19:10:38Z", "epoch_number": 0 }, "mary": { "epoch_start_time": "2021-07-31T19:10:38Z", "epoch_number": 0 }, "byron": { "epoch_start_time": "2021-07-31T19:10:38Z", "epoch_number": 0 }, "allegra": { "epoch_start_time": "2021-07-31T19:10:38Z", "epoch_number": 0 }, "alonzo": null from GET /network/parameters when running `LOCAL_CLUSTER_ERA=mary NO_POOLS=1 NO_CLEANUP=1 local-cluster` and that TestEnableDevelopmentNetworkProtocols was absent from the BFT node's config.
1342308
to
02f1c32
Compare
Canceled. |
bors r+ |
Build succeeded: |
Issue Number
ADP-1025
Background
#2763 made the wallet demand NodeToClientV_9. With cardano-node 1.28.0, V_9 is only enabled if
TestEnableDevelopmentNetworkProtocols
is set in the node config.Overview
V_8
andV_9
.TestEnableDevelopmentNetworkProtocols: True
Comments