From acd8483927f0b814e7a660d063e184b0c1bb3ef1 Mon Sep 17 00:00:00 2001 From: greg Date: Tue, 4 Jun 2024 17:39:30 +0000 Subject: [PATCH] prefix PRUNE_DATA_PREFIX with 0xff --- gossip/src/cluster_info.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossip/src/cluster_info.rs b/gossip/src/cluster_info.rs index 9139582eee324c..7e07a19900616f 100644 --- a/gossip/src/cluster_info.rs +++ b/gossip/src/cluster_info.rs @@ -130,7 +130,7 @@ pub const MAX_INCREMENTAL_SNAPSHOT_HASHES: usize = 25; /// serialized size of the PruneMessage stays below PACKET_DATA_SIZE. const MAX_PRUNE_DATA_NODES: usize = 32; /// Prune data prefix for PruneMessage -const PRUNE_DATA_PREFIX: &[u8] = "SOLANA_PRUNE_DATA".as_bytes(); +const PRUNE_DATA_PREFIX: &[u8] = b"\xffSOLANA_PRUNE_DATA"; /// Number of bytes in the randomly generated token sent with ping messages. const GOSSIP_PING_TOKEN_SIZE: usize = 32; const GOSSIP_PING_CACHE_CAPACITY: usize = 65536;