-
Notifications
You must be signed in to change notification settings - Fork 333
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
chore: Check version compatibility #11577
Comments
Version of the node can also be set within the nodes enr.
copied for convenience: private onDiscovered(enr: ENR) {
// check the peer is an aztec peer
const value = enr.kvs.get(AZTEC_ENR_KEY);
if (value) {
const network = value[0];
// check if the peer is on the same network
if (network === AZTEC_NET) {
this.emit(PeerEvent.DISCOVERED, enr);
}
}
} Enrs can have arbitrary key value pairs added to them, we can include the protocol version as one of these keys, at the moment, this AZTEC_NET key is set to Aztec.Devnet, but we can extent this arbitrarily to a protocol version! |
@Maddiaa0 I tried that approach in #11611 here, but it seems the peer gets added anyway, at least according to I can confirm the peer check is failing, since I see the following in the logs:
Could there be something else adding the peer and bypassing that check? Or is |
The text was updated successfully, but these errors were encountered: