From d91cec8a51851f79f31e4011514284b3360a2ace Mon Sep 17 00:00:00 2001 From: Denys Zadorozhnyi Date: Mon, 18 Nov 2024 11:54:32 +0200 Subject: [PATCH] feature: add `MastForest::advice_map` and load it before the execution When merging forests, merge their advice maps and return error on key collision. --- core/src/mast/serialization/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/mast/serialization/mod.rs b/core/src/mast/serialization/mod.rs index 8601d28a9..ff8966188 100644 --- a/core/src/mast/serialization/mod.rs +++ b/core/src/mast/serialization/mod.rs @@ -30,6 +30,8 @@ use decorator::{DecoratorDataBuilder, DecoratorInfo}; use string_table::{StringTable, StringTableBuilder}; use winter_utils::{ByteReader, ByteWriter, Deserializable, DeserializationError, Serializable}; +use crate::AdviceMap; + use super::{DecoratorId, MastForest, MastNode, MastNodeId}; use crate::AdviceMap;