chore: add n2n handshake version 14 to default options (#665)

This commit is contained in:
Paulo Bressan 2025-06-25 10:27:01 -03:00 committed by GitHub
parent b7b64977e4
commit d09677bdd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,7 @@ const PROTOCOL_V10: u64 = 10;
const PROTOCOL_V11: u64 = 11;
const PROTOCOL_V12: u64 = 12;
const PROTOCOL_V13: u64 = 13;
const PROTOCOL_V14: u64 = 14;
const PEER_SHARING_DISABLED: u8 = 0;
@ -99,6 +100,15 @@ impl VersionTable {
Some(false),
),
),
(
PROTOCOL_V14,
VersionData::new(
network_magic,
true,
Some(PEER_SHARING_DISABLED),
Some(false),
),
),
]
.into_iter()
.collect::<HashMap<u64, VersionData>>();
@ -135,6 +145,15 @@ impl VersionTable {
Some(false),
),
),
(
PROTOCOL_V14,
VersionData::new(
network_magic,
true,
Some(PEER_SHARING_DISABLED),
Some(false),
),
),
]
.into_iter()
.collect::<HashMap<u64, VersionData>>();