From a1ad592d31a14c674b9e44ab5fe1fe1358d03707 Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Tue, 19 May 2026 00:31:13 -0300 Subject: CI: Fix windows build with API annotations --- src/MultigroupCodec.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/MultigroupCodec.cpp') diff --git a/src/MultigroupCodec.cpp b/src/MultigroupCodec.cpp index 81d305c..3deaa23 100644 --- a/src/MultigroupCodec.cpp +++ b/src/MultigroupCodec.cpp @@ -2,6 +2,8 @@ #include "Merkle.h" +#include + namespace nt::MultigroupCodec { // A relation with zero tuples reports an empty merkle_root externally. @@ -24,8 +26,12 @@ namespace nt::MultigroupCodec std::string Build(IStorageBackend& store, const std::vector& relations) { - std::string root; + std::map canonical; for (const auto& [name, root_hex] : relations) + canonical[name] = root_hex; + + std::string root; + for (const auto& [name, root_hex] : canonical) root = nt::Merkle::Insert(store, root, name, encode_payload(root_hex)); return root; -- cgit v1.2.3