From 63b6ec98ea1a4e0987909789f7e932cfbbc3171d Mon Sep 17 00:00:00 2001 From: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> Date: Wed, 4 Feb 2026 15:45:03 +0000 Subject: [PATCH] added comments and haltonerror=false Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> --- include/xrpl/shamap/SHAMapNodeID.h | 11 +++++++++++ sanitizers/suppressions/runtime-asan-options.txt | 1 + 2 files changed, 12 insertions(+) diff --git a/include/xrpl/shamap/SHAMapNodeID.h b/include/xrpl/shamap/SHAMapNodeID.h index 9155b6db39..31473382d6 100644 --- a/include/xrpl/shamap/SHAMapNodeID.h +++ b/include/xrpl/shamap/SHAMapNodeID.h @@ -47,6 +47,17 @@ public: return id_; } + /** + * Get the SHAMapNodeID of a child node at the specified branch. + * + * @param m The branch number (0-15) indicating which child to descend to. + * In the SHAMap's 16-way radix tree, each inner node has up to + * 16 children, indexed by the corresponding nibble (4 bits) of + * the key at the current depth. + * @return SHAMapNodeID of the child node at branch m. + * @throws std::logic_error if this node is at the maximum leaf depth (64) + * or if the node's id doesn't match its depth mask. + */ SHAMapNodeID getChildNodeID(unsigned int m) const; diff --git a/sanitizers/suppressions/runtime-asan-options.txt b/sanitizers/suppressions/runtime-asan-options.txt index 42c18d48e1..95a0d7ec7f 100644 --- a/sanitizers/suppressions/runtime-asan-options.txt +++ b/sanitizers/suppressions/runtime-asan-options.txt @@ -1,3 +1,4 @@ detect_container_overflow=0 detect_stack_use_after_return=0 debug=true +halt_on_error=false