From 14ee1ed0755c4d88c03ebc34e826e9f7aa17f68a Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Sun, 21 Dec 2025 19:58:17 -0600 Subject: [PATCH] shorthash on canon announce --- src/modules/Native/StoreForwardPlusPlus.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/modules/Native/StoreForwardPlusPlus.cpp b/src/modules/Native/StoreForwardPlusPlus.cpp index 62bacae69..b00d24a24 100644 --- a/src/modules/Native/StoreForwardPlusPlus.cpp +++ b/src/modules/Native/StoreForwardPlusPlus.cpp @@ -807,14 +807,15 @@ void StoreForwardPlusPlusModule::canonAnnounce(uint8_t *_message_hash, uint8_t * // set root hash // set message hash - storeforward.message_hash.size = 32; - memcpy(storeforward.message_hash.bytes, _message_hash, 32); + storeforward.message_hash.size = 8; + memcpy(storeforward.message_hash.bytes, _message_hash, 8); // set chain hash - storeforward.commit_hash.size = 32; - memcpy(storeforward.commit_hash.bytes, _commit_hash, 32); + storeforward.commit_hash.size = 8; + memcpy(storeforward.commit_hash.bytes, _commit_hash, 8); // set root hash + // needs to be the full hash to bootstrap storeforward.root_hash.size = 32; memcpy(storeforward.root_hash.bytes, _root_hash, 32);