fix dumb no accounts timeout exploit

This commit is contained in:
MeexReay 2025-04-23 03:26:55 +03:00
parent 8ee5e017a4
commit 999c5e4de5

View File

@ -79,7 +79,7 @@ impl Context {
}
fn get_account_by_addr(&self, addr: &str) -> Option<Account> {
for acc in self.accounts.read().unwrap().iter() {
for acc in self.accounts.read().unwrap().iter().rev() {
if acc.addr() == addr {
return Some(acc.clone())
}