Skip to content

Commit

Permalink
chore: update protocol version map (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
agaffney authored Oct 30, 2024
1 parent 0a20011 commit ae5b703
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions protocol/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ var protocolVersions = map[uint16]ProtocolVersion{
EnableBabbageEra: true,
EnableLocalTxMonitorProtocol: true,
},
// added @ImmutableTip@ to @LocalStateQuery@, enabled Conway, and @GetStakeDelegDeposits@.
(16 + ProtocolVersionNtCOffset): {
NewVersionDataFromCborFunc: NewVersionDataNtC15andUpFromCbor,
EnableLocalQueryProtocol: true,
Expand All @@ -124,6 +125,42 @@ var protocolVersions = map[uint16]ProtocolVersion{
EnableConwayEra: true,
EnableLocalTxMonitorProtocol: true,
},
// added @GetProposals@ and @GetRatifyState@ queries
(17 + ProtocolVersionNtCOffset): {
NewVersionDataFromCborFunc: NewVersionDataNtC15andUpFromCbor,
EnableLocalQueryProtocol: true,
EnableShelleyEra: true,
EnableAllegraEra: true,
EnableMaryEra: true,
EnableAlonzoEra: true,
EnableBabbageEra: true,
EnableConwayEra: true,
EnableLocalTxMonitorProtocol: true,
},
// added @GetFuturePParams@ query
(18 + ProtocolVersionNtCOffset): {
NewVersionDataFromCborFunc: NewVersionDataNtC15andUpFromCbor,
EnableLocalQueryProtocol: true,
EnableShelleyEra: true,
EnableAllegraEra: true,
EnableMaryEra: true,
EnableAlonzoEra: true,
EnableBabbageEra: true,
EnableConwayEra: true,
EnableLocalTxMonitorProtocol: true,
},
// added @GetLedgerPeerSnapshot@
(19 + ProtocolVersionNtCOffset): {
NewVersionDataFromCborFunc: NewVersionDataNtC15andUpFromCbor,
EnableLocalQueryProtocol: true,
EnableShelleyEra: true,
EnableAllegraEra: true,
EnableMaryEra: true,
EnableAlonzoEra: true,
EnableBabbageEra: true,
EnableConwayEra: true,
EnableLocalTxMonitorProtocol: true,
},

// NtN versions
//
Expand Down Expand Up @@ -201,6 +238,19 @@ var protocolVersions = map[uint16]ProtocolVersion{
EnableFullDuplex: true,
EnablePeerSharingProtocol: true,
},
// Enables Chang+1 HF
14: {
NewVersionDataFromCborFunc: NewVersionDataNtN13andUpFromCbor,
EnableShelleyEra: true,
EnableKeepAliveProtocol: true,
EnableAllegraEra: true,
EnableMaryEra: true,
EnableAlonzoEra: true,
EnableBabbageEra: true,
EnableConwayEra: true,
EnableFullDuplex: true,
EnablePeerSharingProtocol: true,
},
}

// GetProtocolVersionMap returns a data structure suitable for use with the protocol handshake
Expand Down

0 comments on commit ae5b703

Please sign in to comment.