From 53e86383820aa12e164615fa9bbc64841f4aa538 Mon Sep 17 00:00:00 2001 From: tamirms Date: Fri, 4 Oct 2024 22:45:51 +0100 Subject: [PATCH] Enable protocol 22 in Horizon (#5487) --- .github/workflows/horizon.yml | 5 ++++- services/horizon/internal/ingest/main.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/horizon.yml b/.github/workflows/horizon.yml index f315e27791..0e458f6de5 100644 --- a/.github/workflows/horizon.yml +++ b/.github/workflows/horizon.yml @@ -13,7 +13,7 @@ jobs: os: [ubuntu-20.04, ubuntu-22.04] go: ["1.21", "1.22"] pg: [12, 16] - protocol-version: [21] + protocol-version: [21, 22] runs-on: ${{ matrix.os }} services: postgres: @@ -36,6 +36,9 @@ jobs: PROTOCOL_21_CORE_DEBIAN_PKG_VERSION: 21.3.1-2007.4ede19620.focal PROTOCOL_21_CORE_DOCKER_IMG: stellar/stellar-core:21.3.1-2007.4ede19620.focal PROTOCOL_21_SOROBAN_RPC_DOCKER_IMG: stellar/soroban-rpc:21.4.1 + PROTOCOL_22_CORE_DEBIAN_PKG_VERSION: 22.0.0-2088.rc1.2d8d764cd.focal + PROTOCOL_22_CORE_DOCKER_IMG: stellar/stellar-core:22.0.0-2088.rc1.2d8d764cd.focal + PROTOCOL_22_SOROBAN_RPC_DOCKER_IMG: stellar/soroban-rpc:22.0.0-rc1-98 PGHOST: localhost PGPORT: 5432 PGUSER: postgres diff --git a/services/horizon/internal/ingest/main.go b/services/horizon/internal/ingest/main.go index 64e4558723..e471b7c4e4 100644 --- a/services/horizon/internal/ingest/main.go +++ b/services/horizon/internal/ingest/main.go @@ -31,7 +31,7 @@ import ( const ( // MaxSupportedProtocolVersion defines the maximum supported version of // the Stellar protocol. - MaxSupportedProtocolVersion uint32 = 21 + MaxSupportedProtocolVersion uint32 = 22 // CurrentVersion reflects the latest version of the ingestion // algorithm. This value is stored in KV store and is used to decide