From 108504d6e26741c721574a7aef383c30ac702755 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Mon, 21 Aug 2023 02:56:10 -0400 Subject: [PATCH] Increase MAX_ADDRESS_LEN In response to https://gist.github.com/tevador/50160d160d24cfc6c52ae02eb3d17024?permalink_comment_id=4665372#gistcomment-4665372 --- substrate/primitives/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/substrate/primitives/src/lib.rs b/substrate/primitives/src/lib.rs index 8c493138..6e946af2 100644 --- a/substrate/primitives/src/lib.rs +++ b/substrate/primitives/src/lib.rs @@ -31,8 +31,8 @@ pub use account::*; // Monero, our current longest address candidate, has a longest address of featured // 1 (enum) + 1 (flags) + 64 (two keys) = 66 -// When JAMTIS arrives, it'll become 114 bytes -pub const MAX_ADDRESS_LEN: u32 = 128; +// When JAMTIS arrives, it'll become 112 or potentially even 142 bytes +pub const MAX_ADDRESS_LEN: u32 = 196; #[derive( Clone, PartialEq, Eq, Debug, Serialize, Deserialize, Encode, Decode, MaxEncodedLen, TypeInfo,