Skip to content

Commit

Permalink
fixup! Check if two pubkeys are used for the same established acc
Browse files Browse the repository at this point in the history
  • Loading branch information
sug0 committed Dec 6, 2023
1 parent a931097 commit 0d1cd93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/src/lib/config/genesis/transactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 0d1cd93

Please sign in to comment.