Skip to content

Commit 1d0a4d7

Browse files
Update jellyfish.c
1 parent c2d0b1d commit 1d0a4d7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

code/logic/jellyfish.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -373,20 +373,14 @@ int fossil_jellyfish_deserialize_from_buffer(fossil_jellyfish_chain_t *chain, co
373373
void fossil_jellyfish_init(fossil_jellyfish_chain_t *chain) {
374374
if (!chain) return;
375375

376-
// Zero out the entire chain structure
377376
memset(chain, 0, sizeof(*chain));
378377

379-
// Initialize non-zero or custom default fields for the chain
380-
chain->memory.attributes.valid = 1; // Assume valid until proven otherwise
381-
chain->memory.attributes.confidence = 1.0f; // Default to max confidence
382-
383378
for (size_t i = 0; i < FOSSIL_JELLYFISH_MAX_MEM; ++i) {
384379
fossil_jellyfish_block_t *b = &chain->memory[i];
385380

386-
// Reset block type and classification fields
387381
b->block_type = JELLY_BLOCK_UNKNOWN;
388-
b->memory.attributes.valid = 1; // Assume valid until proven otherwise
389-
b->memory.attributes.confidence = 1.0f; // Default to max confidence
382+
b->attributes.valid = 1; // Assume valid until proven otherwise
383+
b->attributes.confidence = 1.0f; // Default to max confidence
390384
}
391385
}
392386

0 commit comments

Comments
 (0)