From e634d810b3e292ec5930be18c21ffec09b6aa289 Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Fri, 9 Aug 2024 10:04:02 -0500 Subject: [PATCH] more explicit comment --- transaction-view/src/address_table_lookup_meta.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/transaction-view/src/address_table_lookup_meta.rs b/transaction-view/src/address_table_lookup_meta.rs index ddcf485359e6e7..4f92547ef2ef7c 100644 --- a/transaction-view/src/address_table_lookup_meta.rs +++ b/transaction-view/src/address_table_lookup_meta.rs @@ -23,8 +23,11 @@ const MIN_SIZED_ATL: usize = { // A valid packet with ATLs has: // 1. At least 1 signature // 2. 1 message prefix byte -// 3. 1 static account key -// 4. 1 recent blockhash +// 3. 3 bytes for the message header +// 4. 1 static account key +// 5. 1 recent blockhash +// 6. 1 byte for the number of instructions (0) +// 7. 1 byte for the number of ATLS const MIN_SIZED_PACKET_WITH_ATLS: usize = { 1 // signatures count + core::mem::size_of::() // signature