diff options
| author | Marcos Magueta <maguetamarcos@gmail.com> | 2026-05-19 00:31:13 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-19 00:31:13 -0300 |
| commit | a1ad592d31a14c674b9e44ab5fe1fe1358d03707 (patch) | |
| tree | 1057c30479afbdf0484c0c77d9c493e396d0238e /src/MultigroupCodec.cpp | |
| parent | af8759a9c1d965a3220024d1857aea219d62d898 (diff) | |
| download | RNT-a1ad592d31a14c674b9e44ab5fe1fe1358d03707.tar.gz RNT-a1ad592d31a14c674b9e44ab5fe1fe1358d03707.zip | |
CI: Fix windows build with API annotations
Diffstat (limited to 'src/MultigroupCodec.cpp')
| -rw-r--r-- | src/MultigroupCodec.cpp | 8 |
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; |
