From 13d4e1453f3140a8b1a3d95efa069733d447d4b9 Mon Sep 17 00:00:00 2001 From: gmega Date: Fri, 23 Feb 2024 11:43:17 -0300 Subject: [PATCH] drop non-ref objects of RootObj to avoid triggering broken sink/move in refc --- codex/blocktype.nim | 2 +- codex/manifest/manifest.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codex/blocktype.nim b/codex/blocktype.nim index dd3b70e0..c27c3d51 100644 --- a/codex/blocktype.nim +++ b/codex/blocktype.nim @@ -31,7 +31,7 @@ import ./codextypes export errors, logutils, units, codextypes type - Block* = object of RootObj + Block* = object cid*: Cid data*: seq[byte] diff --git a/codex/manifest/manifest.nim b/codex/manifest/manifest.nim index 486a8fc3..0ccf5a3d 100644 --- a/codex/manifest/manifest.nim +++ b/codex/manifest/manifest.nim @@ -29,7 +29,7 @@ import ../logutils # TODO: Manifest should be reworked to more concrete types, # perhaps using inheritance type - Manifest* = object of RootObj + Manifest* = object treeCid {.serialize.}: Cid # Root of the merkle tree datasetSize {.serialize.}: NBytes # Total size of all blocks blockSize {.serialize.}: NBytes # Size of each contained block (might not be needed if blocks are len-prefixed)