From 98fc0d6a7d0737cc031adc2c77f03a5325222637 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Tue, 5 Nov 2024 10:07:20 -0500 Subject: [PATCH] add comment for `KvId` usage --- crates/chia-datalayer/src/merkle.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/chia-datalayer/src/merkle.rs b/crates/chia-datalayer/src/merkle.rs index 012ab00a0..8099e5fc5 100644 --- a/crates/chia-datalayer/src/merkle.rs +++ b/crates/chia-datalayer/src/merkle.rs @@ -16,6 +16,9 @@ use std::ops::Range; type TreeIndex = u32; type Parent = Option; type Hash = [u8; 32]; +// key and value ids are provided from outside of this code and are implemented as +// the row id from sqlite which is a signed 8 byte integer. the actually key and +// value data bytes will not be handled within this code, only outside. type KvId = i64; // assumptions