From af8759a9c1d965a3220024d1857aea219d62d898 Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Mon, 18 May 2026 12:50:25 -0300 Subject: Branching and object registry rework (#11) --- test/VM.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'test/VM.cpp') diff --git a/test/VM.cpp b/test/VM.cpp index 00361cb..b0a602f 100644 --- a/test/VM.cpp +++ b/test/VM.cpp @@ -6,6 +6,7 @@ #include "InMemoryBackend.h" #include "LifecycleManager.h" #include "Merkle.h" +#include "NamespaceReferenceManager.h" #include "ObjectManager.h" #include "PermissionsManager.h" #include "TupleCodec.h" @@ -32,7 +33,9 @@ static void store_tuple(nt::InMemoryBackend& backend, if (!entry) return; auto* rel = dynamic_cast(entry->object.get()); if (!rel) return; - rel->merkle_root = nt::Merkle::Insert(backend, rel->merkle_root, hash); + auto hash_bin = nt::hex_to_bin(hash); + rel->merkle_root = nt::Merkle::Insert(backend, rel->merkle_root, + hash_bin, hash_bin); } static std::unique_ptr make_relation_type() @@ -74,9 +77,10 @@ struct Fixture nt::ObjectManager objects; nt::PermissionsManager permissions; nt::IdentityManager identities; - nt::LifecycleManager lifecycles; - nt::HandlerManager handler { objects, permissions, identities, lifecycles }; - nt::CursorManager cursors { backend }; + nt::LifecycleManager lifecycles { objects, backend }; + nt::NamespaceReferenceManager references { objects, backend }; + nt::HandlerManager handler { objects, permissions, identities, lifecycles, references }; + nt::CursorManager cursors { backend, &lifecycles, &objects }; int conn = 1; }; -- cgit v1.2.3