From 3efcf783e2fd294a54c207cc8dd80f387b7439ef Mon Sep 17 00:00:00 2001 From: erhant Date: Tue, 16 Jun 2026 13:22:49 +0300 Subject: [PATCH] fix!: ssl requirement added, module name changed --- CMakeLists.txt | 8 ++++++++ flake.nix | 1 + metadata.json | 2 +- src/logos_execution_zone_indexer_module.cpp | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f8b848..b878dfe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,12 @@ endif() # ---- Qt ---- find_package(Qt6 REQUIRED COMPONENTS Core RemoteObjects) set(CMAKE_AUTOMOC ON) + +# ---- OpenSSL ---- +# liblogos_sdk.a uses boost::asio::ssl (rpc_server, plain_transport_*); as a +# static archive it does not carry its OpenSSL dependency, so the final link +# of this plugin must link libssl/libcrypto itself. +find_package(OpenSSL REQUIRED) set(CMAKE_AUTOUIC ON) set(CMAKE_AUTORCC ON) @@ -177,6 +183,8 @@ target_link_libraries(${PLUGIN_TARGET} PRIVATE logos_execution_zone_indexer logos_cpp_sdk logos_core + OpenSSL::SSL + OpenSSL::Crypto ) target_compile_definitions(${PLUGIN_TARGET} PRIVATE diff --git a/flake.nix b/flake.nix index 427d131..7888a70 100644 --- a/flake.nix +++ b/flake.nix @@ -61,6 +61,7 @@ pkgs.qt6.qtbase pkgs.qt6.qtremoteobjects pkgs.qt6.qttools + pkgs.openssl llvmPkgs.clang llvmPkgs.libclang logosExecutionZoneIndexerPackage diff --git a/metadata.json b/metadata.json index d0ab378..a63b7c6 100644 --- a/metadata.json +++ b/metadata.json @@ -1,5 +1,5 @@ { - "name": "liblogos_execution_zone_indexer_module", + "name": "lez_indexer_module", "version": "1.0.0", "description": "Logos Execution Zone Indexer Module for Logos Core", "author": "Logos Blockchain Team", diff --git a/src/logos_execution_zone_indexer_module.cpp b/src/logos_execution_zone_indexer_module.cpp index 9576344..8fa6ae3 100644 --- a/src/logos_execution_zone_indexer_module.cpp +++ b/src/logos_execution_zone_indexer_module.cpp @@ -25,7 +25,7 @@ LogosExecutionZoneIndexerModule::~LogosExecutionZoneIndexerModule() { // === Plugin Interface === QString LogosExecutionZoneIndexerModule::name() const { - return "liblogos_execution_zone_indexer_module"; + return "lez_indexer_module"; } QString LogosExecutionZoneIndexerModule::version() const {