Skip to content

Commit c2d0b1d

Browse files
Update jellyfish.c
1 parent 2a4b43f commit c2d0b1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

code/logic/jellyfish.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,16 +377,16 @@ void fossil_jellyfish_init(fossil_jellyfish_chain_t *chain) {
377377
memset(chain, 0, sizeof(*chain));
378378

379379
// Initialize non-zero or custom default fields for the chain
380-
chain->attributes.valid = 1; // Assume valid until proven otherwise
381-
chain->attributes.confidence = 1.0f; // Default to max confidence
380+
chain->memory.attributes.valid = 1; // Assume valid until proven otherwise
381+
chain->memory.attributes.confidence = 1.0f; // Default to max confidence
382382

383383
for (size_t i = 0; i < FOSSIL_JELLYFISH_MAX_MEM; ++i) {
384384
fossil_jellyfish_block_t *b = &chain->memory[i];
385385

386386
// Reset block type and classification fields
387387
b->block_type = JELLY_BLOCK_UNKNOWN;
388-
b->attributes.valid = 1; // Assume valid until proven otherwise
389-
b->attributes.confidence = 1.0f; // Default to max confidence
388+
b->memory.attributes.valid = 1; // Assume valid until proven otherwise
389+
b->memory.attributes.confidence = 1.0f; // Default to max confidence
390390
}
391391
}
392392

0 commit comments

Comments
 (0)