aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-05-19 00:31:13 -0300
committerGitHub <noreply@github.com>2026-05-19 00:31:13 -0300
commita1ad592d31a14c674b9e44ab5fe1fe1358d03707 (patch)
tree1057c30479afbdf0484c0c77d9c493e396d0238e /src
parentaf8759a9c1d965a3220024d1857aea219d62d898 (diff)
downloadRNT-a1ad592d31a14c674b9e44ab5fe1fe1358d03707.tar.gz
RNT-a1ad592d31a14c674b9e44ab5fe1fe1358d03707.zip
CI: Fix windows build with API annotations
Diffstat (limited to '')
-rw-r--r--src/MultigroupCodec.cpp8
1 files changed, 7 insertions, 1 deletions
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 <map>
+
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<RelationEntry>& relations)
{
- std::string root;
+ std::map<std::string, std::string> 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<std::string>::Insert(store, root, name,
encode_payload(root_hex));
return root;