Skip to content

Commit f047015

Browse files
correct shred_repair mtu
1 parent 315e29b commit f047015

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/disco/fd_disco_base.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@
5353
#define FD_SHRED_STORE_MTU (41792UL)
5454

5555
/* FD_SHRED_REPAIR_MTU is the maximum size of a frag on the shred_repair
56-
link. This is the size of a data shred header + merkle root. */
56+
link. This is the size of a data shred header + merkle root
57+
+ chained merkle root. */
5758

58-
#define FD_SHRED_REPAIR_MTU (FD_SHRED_DATA_HEADER_SZ + FD_SHRED_MERKLE_ROOT_SZ)
59-
FD_STATIC_ASSERT( FD_SHRED_REPAIR_MTU == 120 , update FD_SHRED_REPAIR_MTU );
59+
#define FD_SHRED_REPAIR_MTU (FD_SHRED_DATA_HEADER_SZ + 2*FD_SHRED_MERKLE_ROOT_SZ)
60+
FD_STATIC_ASSERT( FD_SHRED_REPAIR_MTU == 152UL , update FD_SHRED_REPAIR_MTU );
6061

6162
/* Maximum size of frags going into the writer tile. */
6263
#define FD_REPLAY_WRITER_MTU (128UL)

0 commit comments

Comments
 (0)