commit 1a86df6521a4de84efbf5f1667a457b0165ae84f
parent 7fc74b7fe1315ae5ec2343a60a9206512eff020a
Author: Jared Tobin <jared@jtobin.io>
Date: Wed, 2 Dec 2026 14:09:03 +0400
lib: write leaf keys from their words
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Data/MSSMT/LMDB/Internal.hs b/lib/Data/MSSMT/LMDB/Internal.hs
@@ -126,7 +126,7 @@ leaf_record (Commitment _ s) lh (Key k) v =
pokeByteOff p 0 (0 :: Word8)
poke_hash p 1 lh
poke_be64 p 33 s
- BU.unsafeUseAsCString k $ \q -> copyBytes (p `plusPtr` 41) (castPtr q) 32
+ poke_hash p 41 k
BU.unsafeUseAsCString v $ \q ->
copyBytes (p `plusPtr` 73) (castPtr q) (BS.length v)