From 0d1cd930cefe568120c9fc780ff8528b1faa5272 Mon Sep 17 00:00:00 2001 From: Tiago Carvalho Date: Wed, 6 Dec 2023 11:10:33 +0000 Subject: [PATCH] fixup! Check if two pubkeys are used for the same established acc --- apps/src/lib/config/genesis/transactions.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/src/lib/config/genesis/transactions.rs b/apps/src/lib/config/genesis/transactions.rs index 50440ccd7f3..482d3050135 100644 --- a/apps/src/lib/config/genesis/transactions.rs +++ b/apps/src/lib/config/genesis/transactions.rs @@ -1255,10 +1255,11 @@ pub fn validate_established_account( let mut used_keys = HashSet::new(); for key in tx.public_keys.iter() { if !used_keys.insert(key) { - panic!( + eprintln!( "The same public key has been used twice in an \ established account tx: {key}" ); + is_valid = false; } } }