Closed jchris closed 10 months ago
Enhancements to the Block Storage Handling Improved the mechanism for handling Blockstore. A new check has been introduced to set the lead block only when it is defined. This addition in the 'blockstore.js' file will ensure that undefined blocks don't erroneously become the lead.
Root Function Update in Prolly.js Extended the return object of the root function in the 'prolly.js' file. A new 'head' property has been added to the object which will help in handling and referencing the primary or newest data.
Revised Function Signatures in base.js Multiple function signatures in the 'base.js' file have been modified to include a new 'head' parameter. The functions; 'saveCar', 'updateCarCidMap', 'persistCarMap', now have this additional parameter allowing them to handle 'head' information.
Improved Car Map Persistence In the 'persistCarMap' function, code has been added to set the clock head. This will help in better management of the data chronologically. Also, 'blocksToEncryptedCarBlock' function now receives the 'header.cid' instead of 'indexNode.cid', providing a more direct access to the required information.
Introduction of the 'header' variable Added a 'header' variable in 'base.js' that stores the encoded block containing the 'cars' and 'head' information. This will simplify the process of encoding and decoding of these specific block types.
Updated Comments Updated comments throughout the codebase to reflect these changes and provide better clarity for future developers. The updated comments ensure the codebase remains easy to understand, even with these changes.
put the clock in the carmap car for reloading later